Success
Unauthorized
Forbidden
Not Found
Validation Failed
RateLimited
InternalError
{- "data": [
- {
- "id": "hcxik_12345678901234567890123456",
- "type": "api-keys",
- "attributes": {
- "key_type": "ingest",
- "name": "us-west-2 collectors key",
- "disabled": false,
- "permissions": {
- "create_datasets": false
}, - "timestamps": {
- "created": "2022-09-22T17:32:11Z",
- "updated": "2022-10-31T15:08:11Z"
}
}, - "relationships": {
- "environment": {
- "data": {
- "id": "hxenv_12345678901234567890123456",
- "type": "environments"
}
}, - "creator": {
- "data": {
- "id": "hcxus_01hzqr5g7jg9qz40xtgx7rjwj0",
- "type": "users"
}
}, - "editor": {
- "data": {
- "id": "hcxus_01hzqr5g7jg9qz40xtgx7rjwj0",
- "type": "users"
}
}
}, - "links": {
- "self": "/2/teams/my-team/api-keys/hcxik_12345678901234567890123456"
}
}
], - "links": {
- "next": "/2/teams/my-team/api-keys?page[after]=3025fa645ad1100d&page[size]=10"
}
}
This creates an API Key, which will return the API Key components in the response. The Key ID will be found at data.id
and
the Key Secret will be found at data.attributes.secret
. For security reasons the Key Secret will only be available during creation so make sure to save it.
To use a newly-created Ingest Key it should be passed in the X-Honeycomb-Team
header with the API Key's ID and secret
concatenated (and with no separator). For example, X-Honeycomb-Team: hcxik_1234567890123456789012345612345678901234567890123456789012
Check out our best practices for API Keys.
Created
The provided request body was invalid. Most APIs will return a DetailedError for this condition, explaining what went wrong, but some older APIs only return a GenericError.
Unauthorized
Forbidden
Not Found
The provided request body was over the maximum allowed size.
The provided request body had an invalid Content-Type.
Validation Failed
RateLimited
InternalError
{- "data": {
- "type": "api-keys",
- "attributes": {
- "name": "my ingest key",
- "key_type": "ingest",
- "permissions": {
- "create_datasets": true
}
}, - "relationships": {
- "environment": {
- "data": {
- "id": "hcxen_12345678901234567890123456",
- "type": "environments"
}
}
}
}
}
{- "data": {
- "id": "hcxik_12345678901234567890123456",
- "type": "api-keys",
- "attributes": {
- "key_type": "ingest",
- "name": "us-west-2 collectors key",
- "disabled": false,
- "permissions": {
- "create_datasets": false
}, - "timestamps": {
- "created": "2022-09-22T17:32:11Z",
- "updated": "2022-10-31T15:08:11Z"
}, - "secret": "12345678901234567890123456789"
}, - "relationships": {
- "environment": {
- "data": {
- "id": "hxenv_12345678901234567890123456",
- "type": "environments"
}
}, - "creator": {
- "data": {
- "id": "hcxus_01hzqr5g7jg9qz40xtgx7rjwj0",
- "type": "users"
}
}, - "editor": {
- "data": {
- "id": "hcxus_01hzqr5g7jg9qz40xtgx7rjwj0",
- "type": "users"
}
}
}, - "links": {
- "self": "/2/teams/my-team/api-keys/hcxik_12345678901234567890123456"
}
}
}
Success
The provided request body was invalid. Most APIs will return a DetailedError for this condition, explaining what went wrong, but some older APIs only return a GenericError.
Unauthorized
Not Found
RateLimited
InternalError
{- "data": {
- "id": "hcxik_12345678901234567890123456",
- "type": "api-keys",
- "attributes": {
- "key_type": "ingest",
- "name": "us-west-2 collectors key",
- "disabled": false,
- "permissions": {
- "create_datasets": false
}, - "timestamps": {
- "created": "2022-09-22T17:32:11Z",
- "updated": "2022-10-31T15:08:11Z"
}
}, - "relationships": {
- "environment": {
- "data": {
- "id": "hxenv_12345678901234567890123456",
- "type": "environments"
}
}, - "creator": {
- "data": {
- "id": "hcxus_01hzqr5g7jg9qz40xtgx7rjwj0",
- "type": "users"
}
}, - "editor": {
- "data": {
- "id": "hcxus_01hzqr5g7jg9qz40xtgx7rjwj0",
- "type": "users"
}
}
}, - "links": {
- "self": "/2/teams/my-team/api-keys/hcxik_12345678901234567890123456"
}
}
}
Success
The provided request body was invalid. Most APIs will return a DetailedError for this condition, explaining what went wrong, but some older APIs only return a GenericError.
Unauthorized
Forbidden
Not Found
The provided request body was over the maximum allowed size.
The provided request body had an invalid Content-Type.
Validation Failed
RateLimited
InternalError
{- "data": {
- "id": "hcxik_12345678901234567890123456",
- "type": "api-keys",
- "attributes": {
- "name": "updated key name",
- "enabled": false
}
}
}
{- "data": {
- "id": "hcxik_12345678901234567890123456",
- "type": "api-keys",
- "attributes": {
- "key_type": "ingest",
- "name": "us-west-2 collectors key",
- "disabled": false,
- "permissions": {
- "create_datasets": false
}, - "timestamps": {
- "created": "2022-09-22T17:32:11Z",
- "updated": "2022-10-31T15:08:11Z"
}
}, - "relationships": {
- "environment": {
- "data": {
- "id": "hxenv_12345678901234567890123456",
- "type": "environments"
}
}, - "creator": {
- "data": {
- "id": "hcxus_01hzqr5g7jg9qz40xtgx7rjwj0",
- "type": "users"
}
}, - "editor": {
- "data": {
- "id": "hcxus_01hzqr5g7jg9qz40xtgx7rjwj0",
- "type": "users"
}
}
}, - "links": {
- "self": "/2/teams/my-team/api-keys/hcxik_12345678901234567890123456"
}
}
}
This deletes and immediately deactivates the API Key. This is an irreversible operation.
No Content
Unauthorized
Forbidden
Not Found
RateLimited
InternalError
{- "error": "unknown API key - check your credentials"
}