Skip to main content
POST
/
api
/
v1
/
api-keys
Create API Key
curl --request POST \
  --url https://colloqui-web-develop-btoadh.laravel.cloud/api/v1/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "b",
  "expiration": "2027-05-01"
}
'
{
  "data": {
    "id": 432,
    "name": "my-api-key",
    "token": null,
    "created_at": "2026-05-01T06:38:00.000000Z",
    "expires_at": null
  },
  "token": "1|kfhex67Y19kDP1ZR7RZE0ejnbCfTDJg90UETediObe97b7b7"
}

Documentation Index

Fetch the complete documentation index at: https://docs.colloqui.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json
name
string

Must not be greater than 255 characters.

Example:

"b"

expiration
string

The date and time when the API key will no longer be valid. Must be a valid date. Must be a date after now.

Example:

"2027-05-01"

Response

201 - application/json
data
object
token
string
Example:

"1|kfhex67Y19kDP1ZR7RZE0ejnbCfTDJg90UETediObe97b7b7"