Skip to main content
POST
/
account
/
apiKey
Create API Key
curl --request POST \
  --url https://api.closebot.com/account/apiKey \
  --header 'Content-Type: application/json' \
  --header 'X-CB-KEY: <api-key>' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": "<string>",
  "key": "<string>",
  "name": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "expiresAt": "2023-11-07T05:31:56Z"
}

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Body

Key name

name
string | null

Response

Success

id
string | null
key
string | null
name
string | null
createdAt
string<date-time>
expiresAt
string<date-time>