curl --request POST \
--url https://sandbox.ignite-checkout.ai/v1/portal/workspaces/{tenant_id}/apps/{app_id}/keys/{key_id}/rotate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"overlap_seconds": 0,
"scopes": [
"<string>"
]
}
'import requests
url = "https://sandbox.ignite-checkout.ai/v1/portal/workspaces/{tenant_id}/apps/{app_id}/keys/{key_id}/rotate"
payload = {
"overlap_seconds": 0,
"scopes": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({overlap_seconds: 0, scopes: ['<string>']})
};
fetch('https://sandbox.ignite-checkout.ai/v1/portal/workspaces/{tenant_id}/apps/{app_id}/keys/{key_id}/rotate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox.ignite-checkout.ai/v1/portal/workspaces/{tenant_id}/apps/{app_id}/keys/{key_id}/rotate';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({overlap_seconds: 0, scopes: ['<string>']})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.ignite-checkout.ai/v1/portal/workspaces/{tenant_id}/apps/{app_id}/keys/{key_id}/rotate"
payload := strings.NewReader("{\n \"overlap_seconds\": 0,\n \"scopes\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"app_id": "<string>",
"created_at": "<string>",
"created_by": "<string>",
"environment": "sandbox",
"expired": true,
"expires_at": "<string>",
"id": "<string>",
"label": "<string>",
"last_used_at": "<string>",
"note": "<string>",
"prefix": "<string>",
"replaced_by": "<string>",
"revoked_at": "<string>",
"scopes": [
"<string>"
],
"secret": "<string>",
"status": "active",
"tenant_id": "<string>",
"copy_available": false
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}Rotate an API key
Issue a replacement key with the same label and expiry and the same or fewer scopes; the new secret is in the response. The old key is revoked at once, or keeps working for overlap_seconds (up to one day) so you can deploy the new secret first. Requires the Owner, Admin or Developer role with recent sign-in verification; 409 if the key is revoked, expired or already replaced, 403 if scopes would expand.
Raw HTTP template
Replace path, credential and schema placeholders using valid resources. The planned host requires activation; use your assigned API URL meanwhile. Preserve a write’s original idempotency key when its contract supports retry. If sending raw HTTP/1.1, use CRLF for request and header lines. Set Content-Length to the byte length of the final encoded body after replacing placeholders, including multipart delimiters and line endings.
POST /v1/portal/workspaces/{tenant_id}/apps/{app_id}/keys/{key_id}/rotate HTTP/1.1
Host: sandbox.ignite-checkout.ai
Authorization: Bearer <CustomerOIDC-credential>
Content-Type: application/json
Content-Length: <body-length-in-bytes>
{}
HTTP/2 header equivalent
Logical headers over negotiated HTTPS HTTP/2, not a wire-format message. The endpoint, JSON and idempotency rules are unchanged. See HTTP and transport.
:method: POST
:scheme: https
:authority: sandbox.ignite-checkout.ai
:path: /v1/portal/workspaces/{tenant_id}/apps/{app_id}/keys/{key_id}/rotate
authorization: Bearer <CustomerOIDC-credential>
content-type: application/json
{}
curl --request POST \
--url https://sandbox.ignite-checkout.ai/v1/portal/workspaces/{tenant_id}/apps/{app_id}/keys/{key_id}/rotate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"overlap_seconds": 0,
"scopes": [
"<string>"
]
}
'import requests
url = "https://sandbox.ignite-checkout.ai/v1/portal/workspaces/{tenant_id}/apps/{app_id}/keys/{key_id}/rotate"
payload = {
"overlap_seconds": 0,
"scopes": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({overlap_seconds: 0, scopes: ['<string>']})
};
fetch('https://sandbox.ignite-checkout.ai/v1/portal/workspaces/{tenant_id}/apps/{app_id}/keys/{key_id}/rotate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox.ignite-checkout.ai/v1/portal/workspaces/{tenant_id}/apps/{app_id}/keys/{key_id}/rotate';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({overlap_seconds: 0, scopes: ['<string>']})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.ignite-checkout.ai/v1/portal/workspaces/{tenant_id}/apps/{app_id}/keys/{key_id}/rotate"
payload := strings.NewReader("{\n \"overlap_seconds\": 0,\n \"scopes\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"app_id": "<string>",
"created_at": "<string>",
"created_by": "<string>",
"environment": "sandbox",
"expired": true,
"expires_at": "<string>",
"id": "<string>",
"label": "<string>",
"last_used_at": "<string>",
"note": "<string>",
"prefix": "<string>",
"replaced_by": "<string>",
"revoked_at": "<string>",
"scopes": [
"<string>"
],
"secret": "<string>",
"status": "active",
"tenant_id": "<string>",
"copy_available": false
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}Authorizations
Customer access token; current membership, role and app selection are enforced. Protected actions use recent email-code verification in the configured Sandbox or recent authenticator verification in legacy password mode. Available when customer authentication is enabled.
Body
Response
Successful Response