# Check credentials

`GET /v1/me`

Returns the company, scopes and type of these credentials. Needs no scope, so use it to test a key or token.

## Request

```bash
curl https://api.numina.app/v1/me \
  -H "Authorization: Bearer numi_YOUR_API_KEY"
```

## Response `200`

The current credentials

```json
{
  "user": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "email": "string",
    "first_name": "string",
    "last_name": "string"
  },
  "company": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "string",
    "slug": "string"
  },
  "scopes": [
    "contacts:read",
    "invoices:read"
  ],
  "auth_type": "oauth"
}
```

## Errors

- `401` Unauthorized - Invalid or missing authentication
- `403` Forbidden - Missing scope, or the company is archived
- `404` Not Found - The resource does not exist in this company
- `429` Too Many Requests - Rate limit exceeded

See https://developers.numina.app/errors.md for the error format.
