curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/partners/{id}/api-key' \
--header "Authorization: Bearer $EDI_API_TOKEN"
Issues (or rotates) a partner API key. The plaintext is returned exactly once…
New API key — shown exactly once; replaces any previous key
POST
/
v1
/
partners
/
{id}
/
api-key
curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/partners/{id}/api-key' \
--header "Authorization: Bearer $EDI_API_TOKEN"
Path parameters
string
required
Partner ID
Request body
No request body.Response
No response body. New API key — shown exactly once; replaces any previous key.Status codes
| Code | Meaning |
|---|---|
200 | New API key — shown exactly once; replaces any previous key |
403 | Admin credential required |
404 | Unknown partner |
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/partners/{id}/api-key' \
--header "Authorization: Bearer $EDI_API_TOKEN"
Last modified on October 20, 2026