Polymarket errors / Place Orders
400 Bad RequestDon't retry

the order owner has to be the owner of the API KEY

The `maker` address in the order doesn't match the address associated with your API key.

The maker address in the order doesn't match the address that owns the API key. Build the order with the same wallet the credentials were derived for.

Retry? Don't retry

Sending the same request again returns the same error. Change the request first.

Returned by

Handling it in code

The CLOB API returns errors as {"error": "..."}. It also rewrites status codes by message, so branch on the text: anything containing "not found" becomes 404 and anything containing "unauthorized" becomes 401.

r = session.post(url, json=payload, headers=headers)
if r.status_code >= 400:
    msg = r.json().get("error", "")
    if "the order owner has to be the owner of the API KEY" in msg:
        raise ValueError(msg)  # fix the request, don't retry

Related errors

For errors Polymarket doesn't document, like "order manager not ready" or 403s from the edge, see the full error guide.

Message and status from Polymarket's error reference, synced 2026-10-04.