Create API key

Create a new permanent API key (lb_ prefix). Use this to provision separate keys for different agents or integrations. The returned key value is only shown once at creation time — store it securely.

Authentication

AuthorizationBearer

API key (lb_ prefix). Pass as: Authorization: Bearer lb_...

Request

This endpoint expects an object.
namestringRequired

Human-readable label for this API key.

Response

Successful Response
idstring
API key entity ID
namestring

Human-readable label

prefixstring
First 8 characters of the key value
keystring
Full API key value. Use as Bearer token for all authenticated requests.
created_atdatetime
When the key was created
object"api_key"
Object type identifier.

Errors

401
Unauthorized Error
422
Unprocessable Entity Error