The API key in use
const url = 'https://feedzzie.com/api/v1/me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://feedzzie.com/api/v1/me \ --header 'Authorization: Bearer <token>'Who the request is: the key (its id, name, type and visible prefix, never the key or its hash), its scopes, its organization and that organization’s plan and rate limit. Any key the API accepts can read it (read scope). Takes no query parameter.
Authorizations
Sección titulada «Authorizations»Responses
Sección titulada «Responses»Successful response
object
object
The key in use, never the key itself or its hash
object
Key id, as in the panel
The name given to the key in the panel
Key type: the REST API takes only secret keys
The visible start of the key, as the panel shows it (fz_live_ and 8 characters)
null when the key does not expire
The last request before this one, written at most every 5 minutes; null for a key never used
The key’s scopes: admin includes write, and write includes read
object
The organization’s plan, the one its limits use
object
The plan’s requests per minute, for this key and for the whole organization
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
Example
{ "data": { "key": { "type": "secret" }, "scopes": [ "read" ], "plan": "trial" }}Headers
Sección titulada «Headers»The request id, the same as the body’s meta.request_id (a 204 has no body)
Maximum requests allowed in the window (when the rate limiter counted the request)
Requests remaining in the current window (when the rate limiter counted the request)
When the window resets, in Unix time in milliseconds (when the rate limiter counted the request)
Validation error
object
object
Error code
Human-readable error message
What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403
object
Field name with the error
Error message for this field
The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)
The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
Example
{ "error": { "code": "VALIDATION_ERROR", "message": "Title is required", "details": [ { "field": "title", "message": "Title is required" } ] }, "meta": { "request_id": "req_abc123", "timestamp": "2024-01-22T10:00:00Z" }}Authentication required
object
object
Error code
Human-readable error message
What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403
object
Field name with the error
Error message for this field
The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)
The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
Example
{ "error": { "code": "UNAUTHORIZED", "message": "Missing or invalid API key" }, "meta": { "request_id": "req_abc123", "timestamp": "2024-01-22T10:00:00Z" }}Refused: WRONG_KEY_TYPE for a public key, INSUFFICIENT_SCOPE when the key lacks the scope in details[0].expected, (creating an idea, making one active again, or deleting one whose merged ideas become active) PLAN_LIMIT_REACHED, with the resource and the limit in details, or (updating a comment the key did not create) FORBIDDEN
object
object
Error code
Human-readable error message
What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403
object
Field name with the error
Error message for this field
The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)
The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
Example
{ "error": { "code": "INSUFFICIENT_SCOPE", "message": "Admin scope required to change idea status", "details": [ { "field": "scope", "message": "Requires an API key with the admin scope", "expected": "admin" } ] }, "meta": { "request_id": "req_abc123", "timestamp": "2024-01-22T10:00:00Z" }}Rate limit exceeded
object
object
Error code
Human-readable error message
What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403
object
Field name with the error
Error message for this field
The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)
The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
Example
{ "error": { "code": "RATE_LIMITED", "message": "Rate limit exceeded" }, "meta": { "request_id": "req_abc123", "timestamp": "2024-01-22T10:00:00Z" }}Headers
Sección titulada «Headers»Maximum requests allowed
Requests remaining in current window
When the window resets, in Unix time in milliseconds
Seconds to wait before retrying
Internal server error
object
object
Error code
Human-readable error message
What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403
object
Field name with the error
Error message for this field
The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)
The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
Example
{ "error": { "code": "INTERNAL_ERROR", "message": "An unexpected error occurred" }, "meta": { "request_id": "req_abc123", "timestamp": "2024-01-22T10:00:00Z" }}A database read the request needs failed (the key, its organization or plan, or a resource the operation reads), or the rate limiter (Upstash) could not be reached on a write, so the request was not processed. Retry after the given delay. A failed read is never answered as a 401, 404, an empty list or a lower plan. When only Upstash fails, reads are served without the rate limiter. A vote whose updated count cannot be read answers 503 although the vote is stored: retrying it answers 409.
object
object
Error code
Human-readable error message
What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403
object
Field name with the error
Error message for this field
The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)
The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
Example
{ "error": { "code": "SERVICE_UNAVAILABLE", "message": "Service temporarily unavailable" }, "meta": { "request_id": "req_abc123", "timestamp": "2024-01-22T10:00:00Z" }}Headers
Sección titulada «Headers»Seconds to wait before retrying