Source: https://seerepo.com/docs/api-me
Markdown source: https://seerepo.com/docs/api-me.md
Description: The account your API key belongs to.

# Get your account

`GET https://seerepo.com/api/v1/me`

Returns the account the key belongs to: its name, its GitHub user and how many maps it reads. The CLI's `seerepo login` uses it to say which account it's connected to.

## Request

It takes no parameters.

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

## Response

| Field | Type | Description |
|---|---|---|
| `data.name` | string | The account's name. |
| `data.github` | string\|null | Its GitHub user. |
| `data.maps` | number | How many maps it reads, its own and the ones shared with it. |

### Example

```json
{
  "status": "success",
  "data": {
    "name": "Ana",
    "github": "ana",
    "maps": 2
  }
}
```

## Authentication

An API key as `Authorization: Bearer sr_…`. See [Authentication](/docs/api#authentication).

## Errors

Besides the ones every endpoint has (401, 404, 429), see [Errors](/docs/api#errors).
