Cross-Origin Resource Sharing (CORS)
The API fully supports CORS in accordance with the W3C specification. All responses include a wildcardAccess-Control-Allow-Origin header, enabling cross-domain browser requests.
Authentication
Cognigy.AI supports the following authentication methods:API Key
API Key
For Cognigy installations, use an API key in the request path or HTTP headers. Keep it secure and revoke it if exposed.
OAuth2
OAuth2
Use OAuth2 authentication to get an access token via the standard OAuth2 Client Credentials flow. Provide the access token in the
Authorization header as a Bearer token.BasicAuth
BasicAuth
Use a username and password for API requests related to the Management UI.
Error Handling
The API uses standard HTTP status codes (400 and higher) to indicate errors. Error responses follow RFC 7807 and include a traceId that you can provide to Cognigy technical support for troubleshooting.API Server
- Cognigy.AI API:
https://api-trial.cognigy.ai/new/