curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/tenants/{id}/api-keys' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"name": "Two-Person Tent",
"scopes": [
"string"
]
}'
Mints a tenant-scoped API key for external REST callers. The key authenticates…
The new key — plaintext shown once
POST
/
v1
/
tenants
/
{id}
/
api-keys
curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/tenants/{id}/api-keys' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"name": "Two-Person Tent",
"scopes": [
"string"
]
}'
Path parameters
string
required
Tenant ID
Request body
MintTenantKeyBody
string
required
Operator label for the key, e.g.
production-orders.string[]
Response
No response body. The new key — plaintext shown once.Status codes
| Code | Meaning |
|---|---|
200 | The new key — plaintext shown once |
403 | Platform-admin credential required |
404 | Unknown tenant |
Using this contract
Read the source OpenAPI document for declared schemas and alternatives. This page also includes documented corrections from the spec overlays. Example IDs and values are illustrative; replace them with records from your workspace.curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/tenants/{id}/api-keys' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"name": "Two-Person Tent",
"scopes": [
"string"
]
}'
Last modified on October 20, 2026