Errors
Error responses keep the bodies of the original SuperYacht Times API, so they are short.
| Status | Body | Meaning |
|---|---|---|
| 304 | none | Not modified: your If-None-Match matches the current record |
| 401 | {} |
No token, or the token is invalid, expired or revoked |
| 403 | {} |
The token is valid but was not issued for the partner API |
| 404 | {} |
Not found, not in your product, or your key has no active product |
| 404 | {"message":"Yacht not found"} |
/yachts/{id} only: the yacht does not exist or is not in your product |
401
Fetch a new token and retry once. If the new token also gets 401, the key may have been
revoked or may have expired; contact your SuperYacht Times account manager.
404 never says why
A 404 means "no data for you here". The API does not tell you whether the yacht does not exist,
is not included in your product, or whether your key has no product at all. This is deliberate.
Common causes:
- The yacht is not in your product. For example, Standard does not include yachts in build.
- The yacht was unpublished or made confidential since your last sync.
- You called
/id/listwith a Standard key. Use/imo/listor/mmsi/list. - The IMO number or MMSI in a find request is not made of digits.
- Your key is new, on a product that no other key uses yet. The data for that product is
prepared first, which can take a short while; until then every request answers
404. When an existing key changes product, the old product stays active until the new data is ready.
If every request answers 404 with {}, contact your SuperYacht Times account manager to check
the key.
Token endpoint errors
The token endpoint uses the OAuth 2.0 error format instead. See Authentication.
Server errors
A 5xx is a fault on our side. Retry with a back-off. If it persists, contact your SuperYacht
Times account manager.