Create an API key
import requests
url = "https://{FUSION HOST}/api/api-key"
payload = {
"id": "test-key-id",
"name": "test-key-name"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"name": "test-key-name",
"id": "test-key-d",
"createdAt": "2025-10-30T22:53:48Z",
"key": "ae52a9b0-f719-48d9-88b9-566133338cc9",
"roles": [
"developer",
"search"
]
}Create an API key
Creates new API key based on request body
POST
/
api-key
Create an API key
import requests
url = "https://{FUSION HOST}/api/api-key"
payload = {
"id": "test-key-id",
"name": "test-key-name"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"name": "test-key-name",
"id": "test-key-d",
"createdAt": "2025-10-30T22:53:48Z",
"key": "ae52a9b0-f719-48d9-88b9-566133338cc9",
"roles": [
"developer",
"search"
]
}Body
application/json
Was this page helpful?
⌘I