NEAR AI Cloud: Add or update an AML allowlist entry (Admin only)
POST /v1/admin/aml/allowlist Add or update an AML allowlist entry (Admin only) Deprecated: this endpoint is moving to cloud-platform at the same path; the cloud-platform base URL will be announced. Behaviour may differ in edge cases.
Admin permissions: admin session or read_write token. A read_only token receives HTTP 403 with error.type insufficient_permissions before the handler runs.
Request body (application/json):
- account_id (string, required)
- reason (string)
Responses: 200: AML allowlist entry upserted successfully
- account_id (string, required)
- address_type (string, required)
- created_at (string, date-time, required)
- created_by_user_id (string)
- reason (string) 400: Invalid request 401: Unauthorized 403: Forbidden Missing admin privileges (forbidden) or insufficient token permission (insufficient_permissions). 500: Internal server error