Skip to main content
POST
/
kv
Create a new KV
curl --request POST \
  --url https://app.ledger.ai/api/kv \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

filters
string

JSON post body:

{
"customer_id"?: integer
"customer_ids"?: integer[]
"key": string
"labels": integer[]
"locked"?: boolean
"namespace": string
"provider_id"?: integer
"template_id"?: integer
"user_id": integer
"value": string
}

Possible errors:

Field "key": "Key is required"

Field "labels": "Labels is required"

Field "namespace": "Namespace is required"

Field "user_id": "User ID is required"

Field "value": "Value is required"

Body

application/json

Request payload

The body is of type object.

Response

Successful response

The response is of type object.