Skip to content

Create a named provider installation

POST
/v1/integrations/{provider}/installations
curl --request POST \
--url https://api.adversarial.com/api/v1/integrations/example/installations \
--header 'Content-Type: application/json' \
--data '{ "auth_method": "api_key", "connection": {}, "credentials": {}, "display_name": "example" }'
provider
required
string

Provider slug

Media typeapplication/json

A new installation of a provider.

object
auth_method
required

Authentication method selected from the provider catalog.

string
Allowed values: api_key basic bearer oauth2_client_credentials
connection
required

Provider connection values that do not contain secrets.

object
credentials
required

Complete write-only input for the selected authentication method.

object
display_name
required

Installation name, unique among this organization’s installations of the provider.

string

Installation created

Media typeapplication/json

One installed provider connection.

object
auth_error

Safe authentication error, cleared after successful recovery.

string | null
auth_failed_at

Time of the most recent authentication failure.

string | null format: date-time
auth_failure_count
required

Sequential authentication failures since the last accepted provider request.

integer format: int32
auth_method
required

Selected authentication method.

string
Allowed values: api_key basic bearer oauth2_client_credentials
configs
required

Capability configurations owned by this installation.

Array<object>

One capability configuration under an installation.

object
capability
required

Capability identifier.

string
Allowed values: RISK_REGISTER INCIDENT_REGISTER RISK_TICKET INCIDENT_TICKET NOTIFICATION
config
required

Complete validated configuration value.

object
created_date
required

Creation time.

string format: date-time
display_name
required

Name that tells sibling configurations of one capability apart under one installation.

string
enabled
required

Whether the platform can execute this configuration.

boolean
id
required

Configuration identifier.

string format: uuid
installation_id
required

Installation whose credential this configuration runs with.

string format: uuid
updated_date
required

Last update time.

string format: date-time
connection
required

Non-secret connection values.

object
created_date
required

Creation time.

string format: date-time
credentials_set
required

Whether encrypted credentials are present.

boolean
display_name
required

Operator-chosen installation name, unique per organization and provider.

string
id
required

Installation identifier.

string format: uuid
integration_user
required

Service account the platform acts as for this installation.

string format: uuid
provider
required

Canonical provider identifier.

string
status
required

Current lifecycle status.

string
updated_date
required

Last update time.

string format: date-time
Example
{
"auth_method": "api_key",
"configs": [
{
"capability": "RISK_REGISTER"
}
]
}

Invalid provider configuration

Unknown provider

Installation name is already in use