curl --request POST \
--url https://sandbox.ignite-checkout.ai/v1/agent-grants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"oauth_client_id": "<string>",
"oauth_subject": "<string>",
"scopes": [
"<string>"
],
"shopper_ref": "<string>"
}
'import requests
url = "https://sandbox.ignite-checkout.ai/v1/agent-grants"
payload = {
"oauth_client_id": "<string>",
"oauth_subject": "<string>",
"scopes": ["<string>"],
"shopper_ref": "<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({
oauth_client_id: '<string>',
oauth_subject: '<string>',
scopes: ['<string>'],
shopper_ref: '<string>'
})
};
fetch('https://sandbox.ignite-checkout.ai/v1/agent-grants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox.ignite-checkout.ai/v1/agent-grants';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
oauth_client_id: '<string>',
oauth_subject: '<string>',
scopes: ['<string>'],
shopper_ref: '<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/agent-grants"
payload := strings.NewReader("{\n \"oauth_client_id\": \"<string>\",\n \"oauth_subject\": \"<string>\",\n \"scopes\": [\n \"<string>\"\n ],\n \"shopper_ref\": \"<string>\"\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))
}{
"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>"
}
}Issue a shopper agent grant
Create a time-limited delegation that lets an AI agent shop on behalf of one shopper. Requires a server-side API key with agents:manage and the agent_commerce plan feature (403 feature_not_in_plan otherwise); dashboard sign-ins and agent credentials cannot issue grants. Requested scopes must be a subset of catalog:read, cart:write, checkout:write and orders:read that the issuing key also holds (422 otherwise). The agent credential is returned only in this response.
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/agent-grants HTTP/1.1
Host: sandbox.ignite-checkout.ai
Authorization: Bearer <MachineKey-credential>
Content-Type: application/json
Content-Length: <body-length-in-bytes>
{
"shopper_ref": "REPLACE_WITH_VALID_VALUE",
"oauth_subject": "REPLACE_WITH_VALID_VALUE",
"oauth_client_id": "REPLACE_WITH_VALID_VALUE",
"scopes": [
"REPLACE_WITH_VALID_VALUE"
]
}
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/agent-grants
authorization: Bearer <MachineKey-credential>
content-type: application/json
{
"shopper_ref": "REPLACE_WITH_VALID_VALUE",
"oauth_subject": "REPLACE_WITH_VALID_VALUE",
"oauth_client_id": "REPLACE_WITH_VALID_VALUE",
"scopes": [
"REPLACE_WITH_VALID_VALUE"
]
}
curl --request POST \
--url https://sandbox.ignite-checkout.ai/v1/agent-grants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"oauth_client_id": "<string>",
"oauth_subject": "<string>",
"scopes": [
"<string>"
],
"shopper_ref": "<string>"
}
'import requests
url = "https://sandbox.ignite-checkout.ai/v1/agent-grants"
payload = {
"oauth_client_id": "<string>",
"oauth_subject": "<string>",
"scopes": ["<string>"],
"shopper_ref": "<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({
oauth_client_id: '<string>',
oauth_subject: '<string>',
scopes: ['<string>'],
shopper_ref: '<string>'
})
};
fetch('https://sandbox.ignite-checkout.ai/v1/agent-grants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox.ignite-checkout.ai/v1/agent-grants';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
oauth_client_id: '<string>',
oauth_subject: '<string>',
scopes: ['<string>'],
shopper_ref: '<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/agent-grants"
payload := strings.NewReader("{\n \"oauth_client_id\": \"<string>\",\n \"oauth_subject\": \"<string>\",\n \"scopes\": [\n \"<string>\"\n ],\n \"shopper_ref\": \"<string>\"\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))
}{
"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>"
}
}Body
Response
Successful Response