POST
/
create_new_chat
curl --request POST \
  --url https://agency-swarm-app-japboyzddq-uc.a.run.app/create_new_chat \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "apiIntegrationId": "<string>"
}'
{
  "chatId": "<string>"
}

Authorizations

Authorization
string
header
required

Platform token required for authentication. Find or create one inside Profile Icon > API Keys. Example: Bearer sk-agencii-...

Body

application/json

Request body for the /create_new_chat endpoint.

apiIntegrationId
string
required

The unique identifier of the API integration for which to create the chat. Example: "dpCD7snQ0tCWrdtp6UhZ"

Response

200
application/json
Chat created successfully. Returns the unique chatId for the new chat.

Response body for the /create_new_chat endpoint.

chatId
string

The unique identifier for the newly created chat. Example: "FVfA971B3fnBH4S1OKlo"