Skip to main content
POST
/
v1
/
purchases
/
redeem
Redeem License
curl --request POST \
  --url https://api.agentpowers.ai/v1/purchases/redeem \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "license_code": "<string>"
}
'
{
  "skill_slug": "<string>",
  "purchase_id": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Provide a Clerk JWT or a long-lived CLI token (prefix ap_cli_). Pass as Authorization: Bearer <token>.

Body

application/json
license_code
string
required
Required string length: 14 - 26
Pattern: ^[A-F0-9]{4,8}-[A-F0-9]{4,8}-[A-F0-9]{4,8}$

Response

Successful Response

skill_slug
string
required
purchase_id
string
required
message
string
required