KausateKausate Docs
Integrations
Viewing API version 2026-05-01. View the latest version.

Create integration

Store your credentials for a data source.

POST/v2/integrations
X-API-Key<token>

Sign up at Kausate.com to get an API key

In: header

Query Parameters

customerId?|

Customer ID

Header Parameters

Kausate-Version?string
Default"2026-05-01"
Formatdate

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.kausate.com/v2/integrations" \
  -H "X-API-Key: $KAUSATE_API_KEY" \
  -H "Kausate-Version: 2026-05-01" \
  -H "Content-Type: application/json" \
  -d '{
  "datasourceSlug": "YOUR_DATA_SOURCE",
  "secretValues": {
    "api_key": "YOUR_INTEGRATION_API_KEY"
  }
}'

Integration created successfully

{
  "datasourceSlug": "string",
  "datasourceName": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}

Bad Request - Invalid input

{
  "detail": "Invalid datasource slug",
  "code": "request.invalid",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Unauthorized - No API key was supplied

{
  "detail": "API key is required",
  "code": "auth.unauthorized",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Forbidden - The API key is invalid, or valid but not entitled

{
  "detail": "Invalid API key",
  "code": "auth.forbidden",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Conflict - Integration already exists

{
  "detail": "Integration already exists for this datasource",
  "code": "resource.conflict",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Unprocessable Entity - The request failed schema validation, or names a valid entity whose data cannot be served

{
  "detail": [
    {
      "loc": [
        "body",
        "kausateId"
      ],
      "msg": "Field required",
      "type": "missing"
    }
  ],
  "code": "request.invalid",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Internal Server Error

{
  "detail": "An unexpected error occurred. If this persists, please contact support@kausate.com",
  "code": "internal.unexpected",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Last updated on