---
title: "Retrieve the key for a completed checkout"
method: GET
path: "/v1/keys/session/{sessionId}"
tags: ["billing"]
---

# Retrieve the key for a completed checkout

`GET /v1/keys/session/{sessionId}`

## Request

- Base URL: `https://modelglass-api.vercel.app`
- URL: `https://modelglass-api.vercel.app/v1/keys/session/{sessionId}`
- Auth: none required

One-time retrieval of the API key issued for a completed Stripe checkout session. The session id is the credential, so this route is public; the pending key is consumed on read (a second call 404s).

## Path parameters

- `sessionId` string, required

## Response `200`

The issued key.

- object
  - `ok` true, required
  - `data` object, required
    - `apiKey` string
  - `meta` ResponseMeta, required
    - `artifact_version` integer, required
    - `built_at` string, date-time, required
    - `count` integer: Item count when `data` is a collection.

## Other responses

- `404`: No key for this session — the webhook may still be processing (NOT_FOUND).
- `410`: This session's key has already been revealed and cannot be shown again (GONE).

---

[API](https://skmtc.dev/modelglass/apis/modelglass-read-api.md) · [All operations](https://skmtc.dev/modelglass/apis/modelglass-read-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelglass/apis/modelglass-read-api/revisions/5948ffa60462?raw)
