The key stops working immediately. A key cannot revoke itself.
Requires api_keys:write and a key with access to all profiles.
Authorization
bearerAuth API key starting with fh_
In: header
Path Parameters
API key id
^key_[0-9a-fA-F]{32}$Header Parameters
Any unique string up to 255 characters. A retry with the same key within 24 hours returns the first response instead of running again.
length <= 255Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://feedhorizon.com/api/v1/api-keys/key_0195f0a27b3c7d4e8f5a1b2c3d4e5f60"{
"data": {
"id": "key_0195f0a27b3c7d4e8f5a1b2c3d4e5f60",
"deleted": true
}
}{
"error": {
"type": "invalid_request_error",
"code": "validation_failed",
"message": "One or more fields are invalid, see details",
"docUrl": "https://feedhorizon.com/docs/api/errors#invalid_request_error",
"requestId": "req_m2x81a0kfd3h9s"
}
}{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "No Authorization: Bearer header",
"docUrl": "https://feedhorizon.com/docs/api/errors#authentication_error",
"requestId": "req_m2x81a0kfd3h9s"
}
}{
"error": {
"type": "permission_error",
"code": "insufficient_scope",
"message": "The key lacks the scope for this endpoint",
"docUrl": "https://feedhorizon.com/docs/api/errors#permission_error",
"requestId": "req_m2x81a0kfd3h9s"
}
}{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "The resource does not exist, belongs to another organization, or the key cannot see its profile. A malformed id is also a 404",
"docUrl": "https://feedhorizon.com/docs/api/errors#not_found_error",
"requestId": "req_m2x81a0kfd3h9s"
}
}{
"error": {
"type": "conflict_error",
"code": "key_in_use",
"message": "A key cannot revoke itself",
"docUrl": "https://feedhorizon.com/docs/api/errors#conflict_error",
"requestId": "req_m2x81a0kfd3h9s"
}
}{
"error": {
"type": "idempotency_error",
"code": "idempotency_key_reused",
"message": "The key was used for a different request. Use a new key",
"docUrl": "https://feedhorizon.com/docs/api/errors#idempotency_error",
"requestId": "req_m2x81a0kfd3h9s"
}
}{
"error": {
"type": "rate_limit_error",
"code": "rate_limited",
"message": "Too many requests. Wait the seconds in Retry-After",
"docUrl": "https://feedhorizon.com/docs/api/errors#rate_limit_error",
"requestId": "req_m2x81a0kfd3h9s"
}
}{
"error": {
"type": "api_error",
"code": "internal_error",
"message": "Something failed on our side. Retry with backoff, using the same Idempotency-Key for writes",
"docUrl": "https://feedhorizon.com/docs/api/errors#api_error",
"requestId": "req_m2x81a0kfd3h9s"
}
}Create an API key POST
The full key is in the `key` field of this response and is never shown again. Grant rights with `scopes` (an allow list), or with the `permission` shorthand: readwrite = every current scope, readonly = every read scope. A write scope includes reading the same resource. Requires `api_keys:write` and a key with access to all profiles.
post.scheduled Webhook
A post was scheduled. Sent when a post is created with a time or in the queue, or a draft gets scheduled. Sent as `POST` to your webhook URL with the headers `X-Webhook-Signature`, `X-Webhook-Event`, `X-Webhook-Id` and `X-Webhook-Delivery`. See [Webhooks](/docs/guides/webhooks).