API reference · Your application
Suspend your application
/v1/application/suspendPOST /v1/application/suspend stops your own application immediately. Only Anis staff can resume it.
client.Access.SuspendApplicationAsync(reason)- 200 signed answer:
{"applicationId":"<uuid>","status":"suspended","suspendedAt":"<RFC3339>"}. An already-suspended application returns its current state if the request is admitted; later requests are refused by admission. - Every stop emails your technical contact. A stop initiated by your team also emails support@anis.ly. If you have lost the private key entirely, contact support@anis.ly.
Request
Signed with your key, with a one-time nonce and a digest of the body.
Headers: Signature-Input, Signature, Content-Digest, Nonce, X-Anis-Date. The SDKs set all of them for you.
Body: {"reason":"Suspected compromise"} — required text, trimmed, 1 to 500 characters. Sign the body digest with a fresh nonce; no Idempotency-Key or scope is required for an admitted request.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Success. | ApplicationSuspended |
| 400 | Refused: the signed request is badly built. | Problem |
| 401 | Refused: not authenticated. | Problem |
| 403 | Refused: not allowed. | Problem |
| 404 | Refused: not found, or not yours. | Problem |
| 409 | Refused: conflicts with the current state. | Problem |
| 422 | Refused: the request breaks a rule. | Problem |
| 429 | Refused: a limit was reached. | Problem |
| 503 | No decision: a dependency was unavailable. | Problem |
Every answer of this call is signed by Anis — success and every refusal. Require the signature and verify it before you act on the answer; an answer without one is a failure, never an answer (how).
Refusals
Every refusal of this call is a signed problem. Branch on its code; each links to what it means and what to do.
| Error | Code | Status |
|---|---|---|
| Invalid credentials | invalid_credentials | 401 |
| Malformed signed request | malformed_signed_request | 400 |
| Source address not allowed | source_ip_not_allowed | 403 |
| Rate limited | rate_limited | 429 |
| Replay detected | replay_detected | 409 |
| Validation failed | validation_failed | 422 |
| Not found | resource_not_found | 404 |
| Service unavailable | dependency_unavailable | 503 |
| Request timeout | request_timeout | 504 |
| Internal error | internal_error | 500 |
Types
ApplicationSuspended
| Field | Type | Notes |
|---|---|---|
applicationIdalways present | UUID | The id of your suspended application. |
statusalways present | string | Always suspended. Only Anis staff can resume the application. Values: suspended |
suspendedAtalways present | string (date-time) | When the application was suspended, as an RFC3339 timestamp. |