Integrations

Create integration

POST /api/v1/agents/{agentId}/integrations

Create integration

Creates or enables an integration for an agent.

Parameters

Name In Type Description
agentId * path integer

Internal agent id.

Request body

object

Field Type Description
type * string

Integration type. Currently supported: tracking.

Responses

Status Schema Description
201 AgentIntegration

Integration created

400 AgentError

Invalid request body or agent id

401 AgentError

Missing or invalid auth

404 AgentError

Agent not found

Example 201 response
{
    "id": 1,
    "type": "string",
    "data": "string"
}
Example 400 response
{
    "error": "string",
    "message": "string",
    "issues": [
        {
            "path": [
                "string"
            ],
            "message": "string",
            "code": "string"
        }
    ]
}
Example 401 response
{
    "error": "string",
    "message": "string",
    "issues": [
        {
            "path": [
                "string"
            ],
            "message": "string",
            "code": "string"
        }
    ]
}
Example 404 response
{
    "error": "string",
    "message": "string",
    "issues": [
        {
            "path": [
                "string"
            ],
            "message": "string",
            "code": "string"
        }
    ]
}