Pixy: https://pixydesignapp.com Docs: https://pixydesignapp.com/docs API: https://pixydesignapp.com/docs/api.txt # POST /disconnect Retire the key the call was made with. The row stays for the audit trail, and auth refuses the key from the next call on. `POST https://api.pixydesignapp.com/disconnect` Retire the key the call was made with. The row stays for the audit trail with a `revoked_at` stamp, and auth refuses the key from the next call on. There is no undo: a new key means a new invitation and another [`/connect`](https://pixydesignapp.com/docs/api/connect). **Header:** `X-Pixy-Key` carrying the agent key (`px_sk_…`). **Body:** none. **Response:** `{"ok": true}`. **Errors:** | error | when | |---|---| | `invalid_key` | The key is not one of the project's, or was already retired. | | `locked` | The key still holds a *working* task. [Ack](https://pixydesignapp.com/docs/api/ack) it or [release](https://pixydesignapp.com/docs/api/release) it first, so the batch is not stranded on a credential that no longer exists. | **Example:** ```bash curl -X POST https://api.pixydesignapp.com/disconnect \ -H 'X-Pixy-Key: px_sk_yourkey' ```