---
title: "List API keys"
method: GET
path: "/api/api_keys"
tags: ["API Keys"]
---

# List API keys

`GET /api/api_keys`

## Request

- Base URL: `https://api.postproxy.dev`
- URL: `https://api.postproxy.dev/api/api_keys`
- Auth: HTTP bearer

Returns the profile-group-scoped API keys in the caller's environment, newest first. Tokens are never included. Requires an account-wide API key; group-scoped keys and OAuth tokens get 422.

## Response `200`

Scoped API keys, without tokens

- object
  - `data` ApiKey[]
    - `id` string: API key ID, used in the revoke URL.
    - `name` string, nullable: Label given to the key.
    - `profile_group_id` string: The profile group the key is scoped to.
    - `sandbox` boolean: true for sandbox keys.
    - `token` string: The secret bearer token. Returned only in the create response.
    - `created_at` string, date-time

## Other responses

- `422`: Caller is a group-scoped key or an OAuth token

---

[API](https://skmtc.dev/postproxy/apis/postproxy-social-media-api.md) - [All operations](https://skmtc.dev/postproxy/apis/postproxy-social-media-api/llms.txt) - [OpenAPI document](https://skmtc.dev/postproxy/apis/postproxy-social-media-api/revisions/d54482ac4ce7?raw)
