# The API access object

## Attributes

- `object` (string, required):
- `id` (string (uuid), required):
- `name` (string, required):
- `organization` (object, required):
  - `id` (string, required): Company id in mint.
  - `name` (string, required):
- `scopes` (array of strings, required): Scopes granted to this access (without implied scopes).
- `expires_at` (nullable string (date-time), required): Expiry of this API access, set by a company admin in mint. Afterwards every key of the access is rejected with 401. null if the access does not expire.
- `key` (object, required):
  - `id` (string (uuid), required):
  - `prefix` (string, required): Visible part of the key.
  - `expires_at` (nullable string (date-time), required): End of the grace period of this key after a rotation; null if the key itself has no end. The access can still expire earlier, see expires_at of the access.
- `rate_limits` (object, required):
  - `read_per_minute` (integer, required): Read requests per minute for this key.
  - `write_per_minute` (integer, required): Write requests per minute for this key.
  - `organization_read_per_minute` (integer, required): Read requests per minute for all keys of the company.
  - `organization_write_per_minute` (integer, required): Write requests per minute for all keys of the company.
- `idempotency_key_ttl_hours` (integer, required): How long an Idempotency-Key of this access is kept, in hours (default 24).
- `api_version` (string, required):

## Example

```json
{
  "object": "api_client",
  "id": "0f6c2a9e-4b7d-4e1a-8c3f-5d2b9e7a1c64",
  "name": "Learning platform",
  "organization": {
    "id": "org_4821",
    "name": "Northwind University"
  },
  "scopes": [
    "catalog:read",
    "categories:write",
    "films:write",
    "files:read",
    "events:read"
  ],
  "expires_at": null,
  "key": {
    "id": "8e3b1d7a-2c5f-4a9e-b6d0-1f4c8a2e7b53",
    "prefix": "mint_sk_live_3fa9c2e71b",
    "expires_at": null
  },
  "rate_limits": {
    "read_per_minute": 300,
    "write_per_minute": 60,
    "organization_read_per_minute": 1200,
    "organization_write_per_minute": 240
  },
  "idempotency_key_ttl_hours": 24,
  "api_version": "v1"
}
```
