Error shape
Every error has the same body:code, show message to people, and read details when it’s there.
Codes
Rate limits
Assistants share the same limits. A
429 comes with a Retry-After header in seconds.
Retrying safely
GETrequests are always safe to retry.- Add an
idempotency_keytoPOST /demos. Sending the same key again returns the first demo (200) instead of creating another. - Retry
429and503after a short wait. Don’t retry4xxerrors without changing the request.

