Skip to main content
POST
/
service
/
v1
/
apps
/
{app_id}
/
keys
Create Key
import requests

url = "https://api.parallel.ai/account/service/v1/apps/{app_id}/keys"

payload = { "api_key_name": "<string>" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "api_key_id": "<string>",
  "api_key_name": "<string>",
  "app_id": "<string>",
  "app_name": "<string>",
  "created_by_user_id": "<string>",
  "created_by_user_email": "<string>",
  "display_value": "<string>",
  "created_at": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.parallel.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <access_token>. This must be an account API access token minted via Parallel's OAuth device flow, not a standard API key. See the account API docs.

Path Parameters

app_id
string<uuid>
required

Body

application/json

Model for create API key request V2.

api_key_name
string
required

API Key Name

Response

Successful Response

Flattened response for the service create-key endpoint.

api_key_id
string
required

API Key ID

api_key_name
string
required

API Key Name

app_id
string
required

App ID

app_name
string
required

App Name

created_by_user_id
string
required

Created by User ID

created_by_user_email
string
required

Created by User Email

display_value
string
required

Display Value

created_at
integer
required

Created At