/
Create tenant API key
Create an API key for a tenant's REST API. Requires a Full access key. The key is returned in apiKey in this response only, so store it securely. It can take a few seconds to start working. A tenant can have at most 20 keys, including those created in the Push console.
Security
x-api-key
- EU regionhttps://eu1.partner-api.pushsecurity.com/v1/tenants/{tenantId}/apiKeys
- US regionhttps://us1.partner-api.pushsecurity.com/v1/tenants/{tenantId}/apiKeys
curl -i -X POST \
'https://eu1.partner-api.pushsecurity.com/v1/tenants/{tenantId}/apiKeys' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"friendlyName": "SIEM integration",
"permissions": "READ_ONLY"
}'OK
The API key. It is returned only once.
Example:"psak_0123456789abcdef0123456789abcdef"
When the key was created, as a UNIX timestamp in seconds.
Example:1718100000
Email address of whoever created the key. For a key created through the Partner API, this is the creator of the partner API key that was used.
Example:"jane@msp.example.com"
Unique identifier for the API key.
Example:"5b0c6a7e-3f1d-4c2b-9e8a-7d6f5e4c3b2a"
When the key was last used, as a UNIX timestamp in seconds. null if never used.
Example:1718186400
Response
{ "id": "5b0c6a7e-3f1d-4c2b-9e8a-7d6f5e4c3b2a", "friendlyName": "SIEM integration", "creatorEmail": "jane@msp.example.com", "permissions": "FULL_ACCESS", "enabled": true, "creationTimestamp": 1718100000, "lastUsedTimestamp": 1718186400, "apiKey": "psak_0123456789abcdef0123456789abcdef" }