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)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({api_key_name: '<string>'})
};
fetch('https://api.parallel.ai/account/service/v1/apps/{app_id}/keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.parallel.ai/account/service/v1/apps/{app_id}/keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"api_key_name": "<string>"
}
'{
"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,
"is_service_scoped": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Keys
Create Key
Create a new API key for an app
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)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({api_key_name: '<string>'})
};
fetch('https://api.parallel.ai/account/service/v1/apps/{app_id}/keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.parallel.ai/account/service/v1/apps/{app_id}/keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"api_key_name": "<string>"
}
'{
"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,
"is_service_scoped": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Send Authorization: Bearer <access_token>. This must be an account API access token minted via a supported Parallel OAuth grant, not a standard API key. See the account API docs.
Body
application/json
Response
Successful Response
Flattened response for the service create-key endpoint.