---
title: "Get your API key for another account"
method: POST
path: "/api/v1/memberships/{accountId}/key"
tags: ["members"]
---

# Get your API key for another account

`POST /api/v1/memberships/{accountId}/key`

Returns the authenticated identity's own API key for `accountId`, so a client can switch which account it is acting on. Only accounts listed by List accounts you can access are permitted; the key returned always belongs to the calling identity, never to another person.

## Path parameters

- `accountId` string, required

## Headers

- `Authorization` string, required

## Response `200`

The caller's API key for that account.

- MembersGetMembershipKeyResponse200
  - `accountId` string, required
  - `apiKey` string, required

## Other responses

- `401` — Missing or invalid API key.
- `404` — The identity has no access to that account.

---

[API](https://skmtc.net/getdial/apis/rest-api.md) · [All operations](https://skmtc.net/getdial/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getdial/rest-api/versions/cfa621230237/schema)
