Integrations

Endpoints related to managing a hub's integrations.

Get Integration

Retrieves details of a single integration associated with the current hub.

Requires the hubs-integrations-view capability.

SecuritybearerAuth
Request
path Parameters
integrationId
required
string^[a-f0-9]{24}$

The ID of the integration to retrieve.

query Parameters
meta
Array of strings

A comma separated list of meta values. Meta values will show up under a resource's meta field. In the case of applying a meta to a collection of resources, each resource will have it's own relevant meta data. In some rare cases, meta may not apply to individual resources, and may appear in the root document. These will be clearly labeled.

Items Value: "definition"
Responses
200

Details of the specified integration.

default

General error response from the platform

get/v1/hubs/current/integrations/{integrationId}
Response samples
application/json
{
  • "data": {
    }
}

Update Integration

Updates the specified integration within the current hub. If the integration definition specifies that it requires verification, then you must submit a verify task to enable it.

SecuritybearerAuth
Request
path Parameters
integrationId
required
string^[a-f0-9]{24}$

The ID of the integration to update.

query Parameters
meta
Array of strings

A comma separated list of meta values. Meta values will show up under a resource's meta field. In the case of applying a meta to a collection of resources, each resource will have it's own relevant meta data. In some rare cases, meta may not apply to individual resources, and may appear in the root document. These will be clearly labeled.

Items Value: "definition"
Request Body schema: application/json
required
name
string or null >= 5 characters

A new name for the integration.

identifier
string (Identifier) >= 3 characters

The identifier of the integration. Must be unique for every integration.

IntegrationAuth (object) or null
object or null

Updated key-value pairs associated with the integration.

Responses
200

Returns the updated integration.

default

General error response from the platform

patch/v1/hubs/current/integrations/{integrationId}
Request samples
application/json
{
  • "name": "string",
  • "identifier": "string",
  • "auth": {
    },
  • "extra": {
    }
}
Response samples
application/json
{
  • "data": {
    }
}

Delete an Integration

Deletes the specified integration from the current hub, marking it as deleted and returning the updated integration.

SecuritybearerAuth
Request
path Parameters
integrationId
required
string^[a-f0-9]{24}$

The ID of the integration to delete.

Responses
202

Returns a Job Descriptor.

default

General error response from the platform

delete/v1/hubs/current/integrations/{integrationId}
Response samples
application/json
{
  • "data": {
    }
}

List Integrations

Lists all integrations associated with the current Hub, with optional filtering.

Requires the hubs-integrations-view capability.

SecuritybearerAuth
Request
query Parameters
object

In a list return, the data associated with the page number and size returned. 20 results per page, page 2 would be page[size]=20&page[number]=2

sort
Array of strings

An array of sort values. To sort descending, put a - in front of the value, e.g. -id.

meta
Array of strings

A comma separated list of meta values. Meta values will show up under a resource's meta field. In the case of applying a meta to a collection of resources, each resource will have it's own relevant meta data. In some rare cases, meta may not apply to individual resources, and may appear in the root document. These will be clearly labeled.

Items Value: "definition"
object

Filter Field

The filter field is a key-value object, where the key is what you would like to filter, and the value is the value you're filtering for. Supports filtering by state and a text search.

Responses
200

A list of integrations

default

General error response from the platform

get/v1/hubs/current/integrations
Response samples
application/json
{
  • "data": [
    ]
}

Create Integration

Create an integration resource within a hub. If the integration definition specifies that it requires verification, then you must submit a verify task to enable it.

SecuritybearerAuth
Request
query Parameters
meta
Array of strings

A comma separated list of meta values. Meta values will show up under a resource's meta field. In the case of applying a meta to a collection of resources, each resource will have it's own relevant meta data. In some rare cases, meta may not apply to individual resources, and may appear in the root document. These will be clearly labeled.

Items Value: "definition"
Request Body schema: application/json
required

Parameters for creating an integration.

name
required
string >= 5 characters

A name for the integration.

vendor
required
string

Unique vendor for the integration, subject to validation.

identifier
required
string (Identifier) >= 3 characters

The identifier of the integration. Must be unique for every integration.

object

Authentication information for the integration.

object

Additional key-value pairs associated with the integration.

Responses
201

Returns the new integration.

default

General error response from the platform

post/v1/hubs/current/integrations
Request samples
application/json
{
  • "name": "string",
  • "vendor": "string",
  • "identifier": "string",
  • "auth": {
    },
  • "extra": {
    }
}
Response samples
application/json
{
  • "data": {
    }
}

Get Available Integrations

Returns a map of available integrations categorized by their type.

SecuritybearerAuth and hubAuth
Responses
200

A map of categories to lists of integration definitions.

default

General error response from the platform

get/v1/hubs/current/integrations/available
Response samples
application/json
{
  • "data": {
    }
}

Create a new Hub Integration Job.

Creates a new Job targeted at the provided Hub Integration.

Required Permissions

  • Requires a valid hub membership to the target hub.
  • Requires the hubs-integrations-manage capability.
SecuritybearerAuth and hubAuth
Request
path Parameters
integrationId
required
string

The ID of the Hub Integration.

Request Body schema: application/json

Parameters for creating a new Hub Integration Job.

action
required
string

The type of Job/selected Job action to create.

Value: "verify"
Responses
202

Returns a Job Descriptor.

default

General error response from the platform

post/v1/hubs/current/integrations/{integrationId}/tasks
Request samples
application/json
{
  • "action": "verify"
}
Response samples
application/json
{
  • "data": {
    }
}