Create an API key
Create your organization’s API key. Admin only. You normally do this in the dashboard.
The response contains the full key exactly once — copy it immediately; it can’t be retrieved later. The key carries read, write, and admin permissions and does not expire.
One key per organization for now: if a key already exists, creation fails with 409 KEY_LIMIT_REACHED. To rotate, delete the old key (see DELETE /api-keys/{keyId}) and create a new one — the old key stops working the moment you delete it, so update your backend configuration in the same maintenance window.
curl --request POST \
--url https://api.hyperprop.com/platform/v1/organization/api-keys \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Production backend"
}
'import requests
url = "https://api.hyperprop.com/platform/v1/organization/api-keys"
payload = { "name": "Production backend" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Production backend'})
};
fetch('https://api.hyperprop.com/platform/v1/organization/api-keys', 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.hyperprop.com/platform/v1/organization/api-keys",
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' => 'Production backend'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.hyperprop.com/platform/v1/organization/api-keys"
payload := strings.NewReader("{\n \"name\": \"Production backend\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.hyperprop.com/platform/v1/organization/api-keys")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Production backend\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/platform/v1/organization/api-keys")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Production backend\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "API key created. Copy it now — it will not be shown again.",
"data": {
"id": "b7d2f1a0-1c2d-4e5f-8a9b-0c1d2e3f4a5b",
"name": "Production backend",
"keyPrefix": "hp_live_a1b2c3d4",
"permissions": [
"read",
"write",
"admin"
],
"isActive": true,
"createdAt": "2026-07-21T20:30:00.000Z",
"key": "hp_live_your_key_here"
}
}{
"success": false,
"statusCode": 401,
"error": "Unauthorized",
"message": "Authentication required",
"code": "UNAUTHORIZED"
}{
"success": false,
"statusCode": 403,
"error": "Forbidden",
"message": "Access denied",
"code": "FORBIDDEN"
}{
"success": false,
"code": "KEY_LIMIT_REACHED",
"message": "Your organization already has an API key. Delete the existing key first — only one key is allowed for now."
}{
"success": false,
"statusCode": 500,
"error": "Internal Server Error",
"message": "An unexpected error occurred",
"code": "INTERNAL_ERROR"
}Authorizations
Organization API key. Format: "hp_live_{key}". Organization admins manage the key in the dashboard.
Body
Label for the key so you remember where it is used
1 - 100"Production backend"
Response
API key created — the raw key is shown only in this response
true
"API key created. Copy it now — it will not be shown again."
Show child attributes
Show child attributes
{
"id": "b7d2f1a0-1c2d-4e5f-8a9b-0c1d2e3f4a5b",
"name": "Production backend",
"keyPrefix": "hp_live_a1b2c3d4",
"permissions": ["read", "write", "admin"],
"isActive": true,
"createdAt": "2026-07-21T20:30:00.000Z",
"key": "hp_live_your_key_here"
}
curl --request POST \
--url https://api.hyperprop.com/platform/v1/organization/api-keys \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Production backend"
}
'import requests
url = "https://api.hyperprop.com/platform/v1/organization/api-keys"
payload = { "name": "Production backend" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Production backend'})
};
fetch('https://api.hyperprop.com/platform/v1/organization/api-keys', 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.hyperprop.com/platform/v1/organization/api-keys",
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' => 'Production backend'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.hyperprop.com/platform/v1/organization/api-keys"
payload := strings.NewReader("{\n \"name\": \"Production backend\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.hyperprop.com/platform/v1/organization/api-keys")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Production backend\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/platform/v1/organization/api-keys")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Production backend\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "API key created. Copy it now — it will not be shown again.",
"data": {
"id": "b7d2f1a0-1c2d-4e5f-8a9b-0c1d2e3f4a5b",
"name": "Production backend",
"keyPrefix": "hp_live_a1b2c3d4",
"permissions": [
"read",
"write",
"admin"
],
"isActive": true,
"createdAt": "2026-07-21T20:30:00.000Z",
"key": "hp_live_your_key_here"
}
}{
"success": false,
"statusCode": 401,
"error": "Unauthorized",
"message": "Authentication required",
"code": "UNAUTHORIZED"
}{
"success": false,
"statusCode": 403,
"error": "Forbidden",
"message": "Access denied",
"code": "FORBIDDEN"
}{
"success": false,
"code": "KEY_LIMIT_REACHED",
"message": "Your organization already has an API key. Delete the existing key first — only one key is allowed for now."
}{
"success": false,
"statusCode": 500,
"error": "Internal Server Error",
"message": "An unexpected error occurred",
"code": "INTERNAL_ERROR"
}