Skip to main content
POST
/
api
/
api-key
Create an API key
import requests

url = "https://{FUSION HOST}/api/api-key"

payload = {
    "name": "<string>",
    "id": "<string>"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())

Body

application/json
name
string
required
id
string
required
roles
string[]

Response

500

The key could not be created. Check the syntax of your request.