All errors that can be returned from our API
These errors can be returned from our API:
400 invalid_requestThe request body is not a valid JSON object or is empty.
400 unexpected_fieldA field is present in the request but is not one of the required or optional fields.
400 missing_fieldA field is present in the request but is not one of the required or optional fields.
400 invalid_fieldA field is present in the request but is not one of the required or optional fields.
401 application_not_foundThe referenced application ID does not exist.
401 project_not_foundThe referenced project ID does not exist.
401 user_not_foundThe request references a user ID which has not yet been created.
401 group_not_foundThe request references an group ID which has not yet been created.
401 organization_not_foundThe request references an organization ID which has not yet been created.
401 missing_authorization_headerThe request references an group ID which has not yet been created.
401 invalid_authorization_headerThe Authorization header is either not a valid JWT or is missing the Bearer prefix.
401 invalid_app_tokenThe app token is not a valid JWT or is signed incorrectly.
401 invalid_project_tokenThe project token is not a valid JWT or is signed incorrectly.
401 invalid_customer_tokenThe customer token is not a valid JWT or is signed incorrectly.
401 invalid_access_tokenThe access token is invalid. You should request another one.
401 expired_access_tokenThe access token is expired or has been revoked. You should request another one.
400 message_not_appendableThe request references a message that can not support appending. It must contain a markdown node only.
409 group_already_existsThe group you're trying to create already exists.
409 user_already_existsThe user you're trying to create already exists.
500 errorGeneric internal server error.
curl "https://api.cord.com/v1/users/123" \
-X PUT \
-H "Content-Type: application/json" \
-d '{
"profile_picture_url": "https://cord.com/favicon-32x32.png"
}'
{
"error": "missing_authorization_header",
"message": "Authorization header bearer token must be present."
}curl "https://api.cord.com/v1/organizations/123" \
-X PUT \
-H "Content-Type: application/json" \
-d '{ "foo": "bar" }'
{
"error": "unexpected_field",
"message": "foo is not a valid field name for this request. Expected 3 optional fields: name, status and members."
}Not finding the answer you need? Ask our Developer Community