Confirm Purchase By Session
curl --request GET \
--url https://api.agentpowers.ai/v1/purchases/confirmimport requests
url = "https://api.agentpowers.ai/v1/purchases/confirm"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.agentpowers.ai/v1/purchases/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"purchase_id": "<string>",
"status": "<string>",
"skill_slug": "<string>",
"license_code": "<string>",
"purchased_at": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}purchases
Confirm Purchase By Session
Look up purchase status by Stripe session ID (post-redirect).
No auth required — Stripe session IDs are unguessable (64+ char random strings) and act as bearer tokens for the specific checkout. This allows the Astro SSR success page to confirm purchases without a Clerk JWT.
GET
/
v1
/
purchases
/
confirm
Confirm Purchase By Session
curl --request GET \
--url https://api.agentpowers.ai/v1/purchases/confirmimport requests
url = "https://api.agentpowers.ai/v1/purchases/confirm"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.agentpowers.ai/v1/purchases/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"purchase_id": "<string>",
"status": "<string>",
"skill_slug": "<string>",
"license_code": "<string>",
"purchased_at": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Was this page helpful?