API endpointsConnect sessionsCreate a Koil Connect Session POST

Create a Koil Connect Session

POST
/v1/connect-sessions

Create a Koil Connect Session.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/connect-sessions" \  -H "Content-Type: application/json" \  -d '{    "authIntegrationId": "int_123",    "externalActorId": "customer-user-123"  }'
{  "connectSessionToken": "string",  "authorizationUrl": "http://example.com",  "expiresAt": "2019-08-24T14:15:22Z"}
{  "error": {    "code": "validation_error",    "message": "string",    "meta": {      "property1": null,      "property2": null    }  }}