curl --request POST \
--url https://api.qumo-deploy.com/v1/auth/tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "ci-deploy",
"scopes": [
"project:read",
"usage:read"
]
}
'import requests
url = "https://api.qumo-deploy.com/v1/auth/tokens"
payload = {
"name": "ci-deploy",
"scopes": ["project:read", "usage:read"]
}
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: 'ci-deploy', scopes: ['project:read', 'usage:read']})
};
fetch('https://api.qumo-deploy.com/v1/auth/tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qumo-deploy.com/v1/auth/tokens",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'ci-deploy',
'scopes' => [
'project:read',
'usage:read'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qumo-deploy.com/v1/auth/tokens"
payload := strings.NewReader("{\n \"name\": \"ci-deploy\",\n \"scopes\": [\n \"project:read\",\n \"usage:read\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.qumo-deploy.com/v1/auth/tokens")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"ci-deploy\",\n \"scopes\": [\n \"project:read\",\n \"usage:read\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qumo-deploy.com/v1/auth/tokens")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"ci-deploy\",\n \"scopes\": [\n \"project:read\",\n \"usage:read\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "7d9f1b3e-5a7c-4e9b-b1d3-f5a7c9e1b3d5",
"name": "ci-deploy",
"scopes": [
"project:read",
"usage:read"
],
"created_at": "2026-10-04T09:12:44Z",
"expires_at": "2026-11-03T09:12:44Z",
"value": "qumo_pat_3c9e1a7f5b2d8e4a0f6c3b9d7e1a5c2f8d4b0e6a2c9f7d3b1e5a8c0f4b6d2e9a"
}{
"error": "organization_id is required"
}{
"error": "organization_id is required"
}{
"error": "organization_id is required"
}Create a personal access token
Creates a qumo_pat_ token that acts as the signed-in user, capped by
the scopes you give it, and valid for 30 days. The token value is
returned only in this response. Requires a console or CLI session.
curl --request POST \
--url https://api.qumo-deploy.com/v1/auth/tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "ci-deploy",
"scopes": [
"project:read",
"usage:read"
]
}
'import requests
url = "https://api.qumo-deploy.com/v1/auth/tokens"
payload = {
"name": "ci-deploy",
"scopes": ["project:read", "usage:read"]
}
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: 'ci-deploy', scopes: ['project:read', 'usage:read']})
};
fetch('https://api.qumo-deploy.com/v1/auth/tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qumo-deploy.com/v1/auth/tokens",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'ci-deploy',
'scopes' => [
'project:read',
'usage:read'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qumo-deploy.com/v1/auth/tokens"
payload := strings.NewReader("{\n \"name\": \"ci-deploy\",\n \"scopes\": [\n \"project:read\",\n \"usage:read\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.qumo-deploy.com/v1/auth/tokens")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"ci-deploy\",\n \"scopes\": [\n \"project:read\",\n \"usage:read\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qumo-deploy.com/v1/auth/tokens")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"ci-deploy\",\n \"scopes\": [\n \"project:read\",\n \"usage:read\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "7d9f1b3e-5a7c-4e9b-b1d3-f5a7c9e1b3d5",
"name": "ci-deploy",
"scopes": [
"project:read",
"usage:read"
],
"created_at": "2026-10-04T09:12:44Z",
"expires_at": "2026-11-03T09:12:44Z",
"value": "qumo_pat_3c9e1a7f5b2d8e4a0f6c3b9d7e1a5c2f8d4b0e6a2c9f7d3b1e5a8c0f4b6d2e9a"
}{
"error": "organization_id is required"
}{
"error": "organization_id is required"
}{
"error": "organization_id is required"
}Authorizations
The session token qumod login obtains through the device flow
(POST /v1/auth/device/token). It acts as the signed-in user, like a
console session, and needs no CSRF token.
Body
A display name, at most 100 characters. Surrounding whitespace is trimmed.
1 - 100"ci-deploy"
The scopes the token may use, at least one. * grants every scope
the user's own roles allow. See
Scopes and permissions.
1*, project:read, usage:read, audit:read, audit:admin, iam:read, iam:admin, organization:admin, billing:admin, signing_keys:admin ["project:read", "usage:read"]
Response
The token was created. Store value now; it cannot be retrieved again.
A personal access token's metadata. The token value is never included.
"7d9f1b3e-5a7c-4e9b-b1d3-f5a7c9e1b3d5"
"ci-deploy"
"2026-10-04T09:12:44Z"
30 days after creation.
"2026-11-03T09:12:44Z"
The token secret. Shown only in this response.
"qumo_pat_3c9e1a7f5b2d8e4a0f6c3b9d7e1a5c2f8d4b0e6a2c9f7d3b1e5a8c0f4b6d2e9a"