Draw my repo

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.

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

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

Authentication

An API key as Authorization: Bearer sr_…. See Authentication.

Errors

Besides the ones every endpoint has (401, 404, 429), see Errors.