> ## Documentation Index
> Fetch the complete documentation index at: https://support.myapps.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get API Key with Code

### Description

This endpoint retrieves an API key using a request ID, specifically built for ComfyUI workflow uploads.

### Parameters

* **request\_id** (required, path): The request ID used to retrieve the API key.

### Responses

#### 200 OK

`{
  "api_key": "string",  // The returned API key
  "name": "string"  // Name associated with the API key
}`

#### 201 API Key Not Ready

json

Copy code

`{
  "message": "string"  // Message indicating the API key is not yet ready
}`

#### 401 Invalid or Expired Token

text

Copy code

`Invalid or expired token`

#### 500 Error Fetching API Key

json

Copy code

`{
  "error": "string"  // Error message detailing why the key retrieval failed
}`
