Add SSH key
curl --request POST \
--url https://api.aireserve.com/v1/gpu/ssh-keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "my-laptop",
"publicKey": "ssh-ed25519 AAAA..."
}
'import requests
url = "https://api.aireserve.com/v1/gpu/ssh-keys"
payload = {
"name": "my-laptop",
"publicKey": "ssh-ed25519 AAAA..."
}
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({name: 'my-laptop', publicKey: 'ssh-ed25519 AAAA...'})
};
fetch('https://api.aireserve.com/v1/gpu/ssh-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"accepted": true,
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "accepted",
"resourceType": "pod"
}GPU Compute
Add SSH key
Add an SSH public key. Accepted types: Ed25519, RSA (2048–8192 bit), ECDSA (nistp256/384/521). The key is validated, type-checked, and stored with its canonical SHA-256 fingerprint. Returns 202 Accepted (immediate — no async provisioning needed). Requires compute manage access.
POST
/
v1
/
gpu
/
ssh-keys
Add SSH key
curl --request POST \
--url https://api.aireserve.com/v1/gpu/ssh-keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "my-laptop",
"publicKey": "ssh-ed25519 AAAA..."
}
'import requests
url = "https://api.aireserve.com/v1/gpu/ssh-keys"
payload = {
"name": "my-laptop",
"publicKey": "ssh-ed25519 AAAA..."
}
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({name: 'my-laptop', publicKey: 'ssh-ed25519 AAAA...'})
};
fetch('https://api.aireserve.com/v1/gpu/ssh-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"accepted": true,
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "accepted",
"resourceType": "pod"
}Authorizations
Your AI Reserve API key (aireserve_api_…) from the API Keys page in the portal (https://portal.aireserve.com/keys).
Body
application/json
Response
Key added.
Response to a 202 Accepted Compute mutation. All fields are camelCase. Use operationId to poll GET /v1/gpu/operations/{id} for terminal status.
Available options:
true ID of the resource created or mutated.
ID for the durable operation record. Poll GET /v1/gpu/operations/{id} for terminal status.
Available options:
accepted, pending Available options:
pod, volume, template, registry, ssh_key