<!-- Generated by scripts/build-docs.js. Edit docs/swagger.yaml or docs/guides/, then run `npm run docs:build`. -->

# The calling credential's identity

`GET https://{apiId}.execute-api.us-west-1.amazonaws.com/{stage}/v1/me`

Module: Identity · operationId: `getMe` · Auth: `Authorization: Bearer <token>`
Web page: https://apidocs.sequipay.com/#/api/get-me

Echoes back the identity the authorizer resolved from the bearer token — the company, the credential, the token, and the granted scopes. Touches no database. Requires a valid token but **no specific scope**, so a partner can always inspect its own credential.

## Example request

```bash
curl -X GET "https://{apiId}.execute-api.us-west-1.amazonaws.com/{stage}/v1/me" \
  -H "Authorization: Bearer $SEQUIFI_TOKEN"
```

## Responses

### 200: The resolved identity.

- `status` (integer) Example: `200`.
- `message` (string) Example: `success`.
- `data` (object): The identity the authorizer resolved from the token.
  - `company_id` (string): The company the token belongs to. Example: `cmp_01H8X…`.
  - `credential_id` (string, nullable): The partner credential the token was minted for. Example: `cred_01H8Y…`.
  - `token_id` (string, nullable): The specific token presented. Example: `tok_01H8Z…`.
  - `scopes` (array of string)

### 401: Missing, invalid, expired, or revoked token (from the authorizer).

### 500: An infrastructure or data error. The endpoint fails closed — a 500, never a partial or empty-looking result.

```json
{
  "status": 500,
  "message": "internal error",
  "data": null
}
```
