You can access the REST API docs from the sidebar or download the cde-public-api-spec.json openAPI spec directly.
Basics
All requests and responses areapplication/json
content type and follow typical HTTP response status codes for success and failure.
Request URLs must be lowercase as URLs are case-sensitive.
Status Codes
Success
A successful response is indicated by HTTP status code 200 and may contain an optional body. If the response has a body it is documented under each resource.Errors
message
parameter indicating the cause. Your language HTTP library should be configured to provide message bodies for non-2xx requests so that you can read the message field from the body.
Common Error Codes
Status Code | Reason |
---|---|
400 | Bad Request — Invalid request format |
401 | Unauthorized — Invalid API Key |
403 | Forbidden — You do not have access to the requested resource |
404 | Not Found |
500 | Internal Server Error |