CRBNai API
  1. API Keys
CRBNai API
  • README
  • Authentication
  • Guides
    • Creating a Knowledge Bot
  • API Keys
    • Get all API Keys
      GET
    • Create API Key
      POST
    • Delete API Key
      DELETE
  • Chats
    • Messages
      • Get Chat Messages
      • Post Chat Message
    • Recipes
      • Get All Chat Recipes
    • Get All Chats
      GET
    • Create Chat
      POST
  • Documents
    • Delete Document
      DELETE
    • Download Document
      GET
    • Update Document
      PUT
  • Knowledge Bots
    • Documents
      • Add Document to Knowledge Bot
      • Prepare Document Upload
    • Chats
      • Chat Messages
        • Get Messages of a Knowledge Bot chat
        • Post a message to a Knowlege Bot chat
      • Get all Knowledge Bot chats
      • Create Knowledge Bot chat
    • Chats - deprecated
      • Chat with a Knowledge Bot
    • Create Knowledge Bot
      POST
    • Get All Knowledge Bots
      GET
    • Get Knowledge Bot by ID
      GET
    • Delete Knowledge Bot by ID
      DELETE
    • Update Knowledge Bot by ID
      PUT
  1. API Keys

Create API Key

POST
/api/accounts/me/api-keys
api
Use this endpoint to create an API key with an existing API key.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.crbnai.com/api/accounts/me/api-keys'
Response Response Example
200 - Success
{
    "id": "5826e10c-aeef-4de0-9fac-bbd7f9313a2b",
    "created_at": "2024-05-02T12:57:26.432Z",
    "token": "apikeyv1_asdf"
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************

Responses

🟢200OK
application/json
Body
id
string <uuid>
required
ID assigned to this API key.
created_at
string <date-time>
required
Date (ISO 8601) that this API key was created.
token
string 
required
The token for this API Key, only returned after creation.
Example:
apikeyv1_asdf...
🟠400Bad Request
Previous
Get all API Keys
Next
Delete API Key
Built with