# Check your key

> GET /api/public/v1/me. Techvia TMS public API v1 reference.

Source: https://techvia.software/docs/tms/reference/key/check-your-key/

`GET /api/public/v1/me`

**Scope:** any valid key, no scope needed. Rules and edge cases: [Your key guide](/docs/tms/quickstart/).

## Responses

| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicMeDto` |
| `401` | Unauthorized | `ProblemDetails` |

### `200` body

| Field | Type | Notes |
|---|---|---|
| `tenantName` | string |  |
| `keyName` | string |  |
| `scopes` | string[] |  |
| `expiresAt` | string (date-time) |  |
| `quota` | PublicApiQuota |  |
| `quota.meter` | string |  |
| `quota.used` | integer (int64) |  |
| `quota.limit` | integer (int64) |  |
| `quota.remaining` | integer (int64) |  |
| `quota.resetsAt` | string (date-time) |  |
| `rateLimits` | PublicApiRateLimit[] |  |
| `rateLimits[].scope` | string |  |
| `rateLimits[].limit` | integer |  |
| `rateLimits[].windowSeconds` | integer |  |

Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).

**Example request**

**curl**

```bash
curl "https://tms-api.techvia.software/api/public/v1/me" \
  -H "Authorization: Bearer $TMS_KEY"
```

**JavaScript**

```js
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/me`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TMS_KEY}`,
  },
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```

**Python**

```python

res = requests.request(
    "GET",
    f"https://tms-api.techvia.software/api/public/v1/me",
    headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```

**Example response** `200`

```json
{
  "tenantName": "Acme Logistics",
  "keyName": "Zapier",
  "scopes": [
    "loads.read",
    "loads.write",
    "billing.read"
  ],
  "expiresAt": null,
  "quota": {
    "meter": "api.requests",
    "used": 1204,
    "limit": 10000,
    "remaining": 8796,
    "resetsAt": "2026-12-01T00:00:00+00:00"
  },
  "rateLimits": [
    {
      "scope": "key",
      "limit": 60,
      "windowSeconds": 60
    },
    {
      "scope": "workspace",
      "limit": 120,
      "windowSeconds": 60
    },
    {
      "scope": "ip",
      "limit": 3000,
      "windowSeconds": 60
    }
  ]
}
```

<p class="ep-caption">Illustrative values. The rate limits are the real ones (each per 60 seconds); the quota limit depends on your plan.</p>
