> ## Documentation Index
> Fetch the complete documentation index at: https://docs.0xmonaco.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ComplianceService

> The caller's region status

Package: `monaco.api.compliance`

Source: `protos/api/compliance.proto`

Use `ComplianceService` to learn whether trading is available in the caller's region. It is public — no auth — and serves the same answer as `GET /api/v1/compliance/region`.

```protobuf theme={null}
service ComplianceService {
  rpc GetRegionStatus(GetRegionStatusRequest) returns (GetRegionStatusResponse);
}
```

## Notes

* `GetRegionStatus` is public, takes an empty `GetRegionStatusRequest` and answers from every region.
* `GetRegionStatusResponse` carries `restricted` and `country` (the ISO 3166-1 alpha-2 code the edge geolocated, `T1` for Tor, `XX` for unknown, empty when the request carried no location).
* A caller from a restricted region keeps every read RPC, the `AuthService` sign-in RPCs (`Challenge`, `Verify`, `Refresh`, `Revoke`) and `WithdrawalsService.InitiateWithdrawal`. Every other write RPC refuses it with `PERMISSION_DENIED`, message `Trading is not available in your region.`, and a `google.rpc.ErrorInfo` detail with reason `REGION_RESTRICTED`, domain `compliance.0xmonaco.com`, and metadata `reason: app_geo_block`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.