Integration

Search and filter integration

post
Authorizations
Body
nextTokenstringOptionalExample: eyJza2lwIjoxMH0
pageSizeinteger · min: 1 · max: 100OptionalDefault: 10
Responses
200
Success
application/json
post
POST /v1/integration/search HTTP/1.1
Host: api.draftt.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 96

{
  "filter": {
    "type": "aws"
  },
  "sort": {
    "createdAt": "asc"
  },
  "nextToken": "eyJza2lwIjoxMH0",
  "pageSize": 10
}
{
  "items": [
    {
      "id": 1,
      "name": "My AWS Integration",
      "type": "aws",
      "details": {
        "externalId": "abc123",
        "roleArn": "arn:aws:iam::123456789012:role/my-role",
        "accountId": "123456789012"
      },
      "createdAt": "2024-12-01T12:00:00.000Z",
      "updatedAt": "2024-12-23T12:00:00.000Z"
    }
  ],
  "nextToken": "text",
  "totalCount": 12
}

Retrieve a specific integration by ID

get
Authorizations
Path parameters
integrationIdintegerRequired
Responses
200
Success
application/json
get
GET /v1/integration/{integrationId} HTTP/1.1
Host: api.draftt.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "items": [
    {
      "id": 1,
      "name": "My AWS Integration",
      "type": "aws",
      "details": {
        "externalId": "abc123",
        "roleArn": "arn:aws:iam::123456789012:role/my-role",
        "accountId": "123456789012"
      },
      "createdAt": "2024-12-01T12:00:00.000Z",
      "updatedAt": "2024-12-23T12:00:00.000Z"
    }
  ],
  "nextToken": null
}