Skip to Content
Developer docs

Errors

The error format, and every code the APIs answer with.

A request that fails answers with an HTTP status and a JSON body. Build on error.code, which stays the same. error.message is for people and logs and may change.

{
  "success": false,
  "error": {
    "code": "video_too_long",
    "message": "The video is 75 s long; the limit is 60 s",
    "details": { "seconds": 75, "limit": 60 }
  }
}

details appears when there is more to say: the invalid fields for invalid_request, the missing file for upload_missing.

Meishi API

StatusCodeWhat to do
401api_key_requiredSend your API key in the Authorization header.
401api_key_invalidThe key is wrong, was replaced or was deleted. Use the current key.
402plan_requiredYour plan does not include the API.
402no_experience_creditsYour organization has no experiences left. A draft stays a draft: submit it again once you have more.
404experience_not_foundYour organization has no experience with this ID.
409upload_missingA file was not uploaded yet. details.file says which.
422invalid_requestThe request is not valid. details says what is wrong where.
422image_requiredNo image was sent and the key has no label.
422file_refusedA file has a type or size the API does not take.
422video_too_longThe video is longer than 60 seconds.
422image_too_smallThe image is less than 480 px on its short side.
422image_unreadableThe image could not be read. Send a valid jpeg, png or webp.
429rate_limitedToo many requests. Wait for the Retry-After seconds.
5xxSomething went wrong on our side. Retry with backoff.

Website orders API

StatusCodeWhat to do
400invalid_cursorThe cursor was changed, or did not come from this list. Start the list again.
401server_key_requiredSend your server key in the Authorization header.
401server_key_invalidThe key is wrong, was replaced, or its website key was deleted.
402no_experience_creditsNo experiences left. It stays reserved: confirm it again once you have more.
404experience_not_foundYour organization has no experience with this ID.
409experience_cancelledIt was cancelled, so it can no longer be confirmed.

Retrying

Submitting and confirming are safe to repeat: doing it again answers with where the experience stands and counts nothing twice. Cancelling or deleting a draft or a reserved experience removes it, so a second try answers 404 experience_not_found: treat that as done. So when a request times out or answers 5xx or 429, retry it with exponential backoff.