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));HttpResponse<String> response = Unirest.post("https://api.parallel.ai/account/service/v1/apps/{app_id}/keys")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"api_key_name\": \"<string>\"\n}")
.asString();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
}{
"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));HttpResponse<String> response = Unirest.post("https://api.parallel.ai/account/service/v1/apps/{app_id}/keys")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"api_key_name\": \"<string>\"\n}")
.asString();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
}{
"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.
Path Parameters
Body
application/json
Model for create API key request V2.
API Key Name
Response
Successful Response
Flattened response for the service create-key endpoint.
API Key ID
API Key Name
App ID
App Name
Created by User ID
Created by User Email
Display Value
Created At