Authentication

You'll need to authenticate your requests to access any of the endpoints in the BREVIAN API. In this guide, we'll look at how authentication works.

Initially, you must create a new API token for your organization. This API token will be required to authenticate your requests. Make sure to save your token in a safe place, as you won't be able to see it again.

  • Name
    Expires
    Description

    This cannot be changed. If you need to change the expiry date, create a new API Key.

  • Name
    Agent
    Description

    Agent that can be used with the API key.

  • Name
    Allowed IPs
    Description

    Comma seperated list of allowed IPs for the API Key.

  • Name
    Rate Limit
    Description

    Number of requests allowed per minute.

Bearer token

Here's how to add the token to the request header using cURL:

Example request with bearer token

curl https://chat.brevian.ai/api/v1/chat \
  -H "Authorization: Bearer {token}"

Always keep your token safe and disable it if you suspect it has been compromised.

Using an SDK

Our official SDKs ensure a smoother integration process.

Was this page helpful?