# Credential Identity

> Confirm which organization an API key or OAuth access token belongs to and when it expires.

Source: https://docs.oursprivacy.com/docs/platform-api/credential-identity

Confirm which organization an API key or OAuth access token belongs to and when it expires. Any valid credential can call it, so a client can check its key or token before calling other operations. Authentication failures return the same `401` and `403` responses described in [Authentication](https://docs.oursprivacy.com/docs/platform-api/authentication).

## GET /rest/v1/me

Identify the authenticated credential. Requires no API-key scope or OAuth user permission, so a narrow API key or a new OAuth connection can confirm it is valid before calling other operations.

Request URL: `GET https://app.oursprivacy.com/rest/v1/me`

Authentication: apiKey or oauth2.

### Responses

- `200`: Organization and expiration of the authenticated credential
- `401`: Unauthorized — missing, invalid, or expired API key or OAuth access token
- `403`: Forbidden — credential does not have the required current Ours permission
- `500`: Internal Server Error

#### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `organizationId` | string | Yes | Organization the credential acts for. |
| `organizationName` | string \| null | Yes | Display name of the organization, or null when unavailable. |
| `expiresAt` | string \| null (date-time) | Yes | ISO-8601 expiration of the API key or OAuth access token, or null. |

Full schema: [OpenAPI specification](https://docs.oursprivacy.com/openapi-platform.json).
