Blog

Save a merchant AI key and monthly spend cap

PUT
/v1/stores/{storeId}/blog/ai/settings

Authorization

AuthorizationBearer <token>

API key from Settings → API keys

In: header

Path Parameters

storeId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/stores/string/blog/ai/settings" \  -H "Content-Type: application/json" \  -d '{    "provider": "openrouter",    "model": "string",    "monthlyCapMinor": 0  }'
{  "provider": "openrouter",  "model": "string",  "monthlyCapMinor": -9007199254740991,  "spentMinor": -9007199254740991,  "hasKey": true}