API Reference
Get completion
Processes a message using the specified API integration and returns a completion from the agent. Requires a valid platform token. Ensure the apiIntegrationId is valid. Supports continuing existing chats via chatId or aliasChatId and attaching files with tools.
POST
Authorizations
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 /get_completion endpoint.
Response
200
application/json
Successful response. The format varies depending on the textOnly
mode configured for the API Integration. If textOnly
is enabled, the response is plain text. Otherwise, it's application/json.
Response body for the /get_completion endpoint when textOnly mode is disabled.