# Account

> Who you are calling as. 2 endpoints in the Unvop API.

Who you are calling as.

## The OpenAPI document

`GET /v1/openapi.json`

No key needed.

This API described as OpenAPI 3.1: every endpoint, its scope, parameters, bodies, answers and errors. No key needed.

### Response 200

- `openapi` (string, required)
- `paths` (object, required)

### Example

```sh
curl https://api.unvop.com/v1/openapi.json
```

## Who am I

`GET /v1/me`

Any valid key.

The key or grant you are calling with: its kind, scopes, the sites it can reach, and whether AI builds are available.

### Response 200

- `kind` (string, required): One of `platform`, `site`, `account`.
- `name` (string, required)
- `siteId` (string, required, nullable)
- `scopes` (array of strings, required)
- `sites` (array of strings, required, nullable)
- `ai` (object, required)
  - `available` (boolean, required)

### Errors

- `401`: No key, or the key isn’t valid.
- `403`: The key lacks the scope (insufficient_scope) or the role this needs, or the site’s plan lacks the feature (feature_not_in_plan).
- `429`: Too many requests; wait for RateLimit-Reset seconds.

### Example

```sh
curl https://api.unvop.com/v1/me \
  -H "Authorization: Bearer $UNVOP_KEY"
```
