---
title: "API keys and you"
description: "Who you are, your API keys and your sign-ins."
image: "https://talkto.sh/docs/opengraph.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://talkto.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# API keys and you

Who you are, your API keys and your sign-ins. Every route takes `Authorization: Bearer $TALKTO_API_KEY`. See [the overview](https://talkto.sh/docs/api/) for keys, request keys, replies and errors. Generated from [`/openapi.json`](https://talkto.sh/openapi.json).

## Current user

```http
GET /v1/me
```

**Returns** `data`: `user` (object), `permissions` (object), `connection` (object).

**Example**

```sh
curl "https://talkto.sh/v1/me" \
  -H "Authorization: Bearer $TALKTO_API_KEY"
```

## List

```http
GET /v1/me/sign-ins
```

**Returns** `data`: `items` (array of object), `provider` (`"ok"` or `"unavailable"`).

**Example**

```sh
curl "https://talkto.sh/v1/me/sign-ins" \
  -H "Authorization: Bearer $TALKTO_API_KEY"
```

## Sign out

```http
POST /v1/me/sign-ins/{id}/sign-out
```

**Parameters**

| Parameter | In | Type | Required |
| --- | --- | --- | --- |
| `id` | path | string | Yes |

**Body**

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `scope` | `"this"` or `"app"` | No |  |

**Returns** `data`: `scope` (`"this"` or `"app"`), `provider` (`"revoked"` or `"skipped"`).

**Example**

```sh
curl -X POST "https://talkto.sh/v1/me/sign-ins/$ID/sign-out" \
  -H "Authorization: Bearer $TALKTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## List

```http
GET /v1/me/api-keys
```

**Returns** `data`: `items` (array of object), `max` (number or `"Infinity"` or `"-Infinity"` or `"NaN"`).

**Example**

```sh
curl "https://talkto.sh/v1/me/api-keys" \
  -H "Authorization: Bearer $TALKTO_API_KEY"
```

## Revoke

```http
DELETE /v1/me/api-keys/{id}
```

**Parameters**

| Parameter | In | Type | Required |
| --- | --- | --- | --- |
| `id` | path | ID | Yes |

**Returns** `data`: `id` (ID), `revokedAt` (string).

**Example**

```sh
curl -X DELETE "https://talkto.sh/v1/me/api-keys/$ID" \
  -H "Authorization: Bearer $TALKTO_API_KEY"
```

Source: https://talkto.sh/docs/api/keys-and-you/index.mdx
