boundry.
RegionSydney, Australia
Documentation/Delete an API key
DELETE/api-keys/{keyId}

Delete an API key

Authentication

Bearer authentication is required for this operation.

Path parameters

NameTypeDescription
keyIdrequiredstring

API key identifier.

Request examples

request.sh
bash
curl --request DELETE 'https://api.au.boundry.dev/api-keys/string' \
+  -H 'Authorization: Bearer $BOUNDRY_API_KEY' \
+

200 response

Deleted API key identifier.

FieldTypeDescription
deletedrequiredboolean

Deletion marker. Values: true.

idrequiredstring

Deleted API key identifier. Example: "msg_01j0example".

objectrequiredstring

Resource type discriminator. Values: "api_key".

response.jsonExample response
application/json
{
  "keyId": "key_01j0example"
}

401 response

Invalid API key.

FieldTypeDescription
errorsarray

Detailed validation issues. Absent only for the historical 401 API-key envelope.

coderequiredstring

Zod validation issue code. Example: "invalid_format".

messagerequiredstring

Human-readable validation failure. Example: "Invalid email address".

pathrequiredstring

Dot-separated location of the invalid value. Example: "from".

messagerequiredstring

Human-readable error message. Example: "Request validation failed.".

namerequiredstring

Machine-readable error category. Values: "validation_error", "application_error", "not_found". Example: "validation_error".

response.jsonExample response
application/json
{
  "keyId": "key_01j0example"
}

404 response

API key not found.

FieldTypeDescription
errorsarray

Detailed validation issues. Absent only for the historical 401 API-key envelope.

coderequiredstring

Zod validation issue code. Example: "invalid_format".

messagerequiredstring

Human-readable validation failure. Example: "Invalid email address".

pathrequiredstring

Dot-separated location of the invalid value. Example: "from".

messagerequiredstring

Human-readable error message. Example: "Request validation failed.".

namerequiredstring

Machine-readable error category. Values: "validation_error", "application_error", "not_found". Example: "validation_error".

response.jsonExample response
application/json
{
  "keyId": "key_01j0example"
}

422 response

Request validation failed.

FieldTypeDescription
errorsarray

Detailed validation issues. Absent only for the historical 401 API-key envelope.

coderequiredstring

Zod validation issue code. Example: "invalid_format".

messagerequiredstring

Human-readable validation failure. Example: "Invalid email address".

pathrequiredstring

Dot-separated location of the invalid value. Example: "from".

messagerequiredstring

Human-readable error message. Example: "Request validation failed.".

namerequiredstring

Machine-readable error category. Values: "validation_error", "application_error", "not_found". Example: "validation_error".

response.jsonExample response
application/json
{
  "keyId": "key_01j0example"
}