Skip to main content
POST
/
io.pocketenv.sandbox.createIntegration
Create a new integration for the sandbox.
curl --request POST \
  --url https://api.pocketenv.io/xrpc/io.pocketenv.sandbox.createIntegration \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "name": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "webhookUrl": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
id
string
required

The sandbox ID.

name
string
required

The name of the integration.

Response

OK

id
string

Unique identifier of the integration.

name
string

The name of the integration, e.g. 'GitHub', 'Slack', 'Trello', etc.

webhookUrl
string<uri>

The webhook URL of the integration.

createdAt
string<date-time>

The timestamp when the integration was created.

updatedAt
string<date-time>

The timestamp when the integration was last updated.