Skip to content

Brand API

In ANKK, each Public API key is automatically bound to a single Brand upon creation. All subsequent API requests operate within that brand’s context. You can retrieve brand details to verify key validity and access status.


MethodPathDescriptionRequired Scope
GET/v1/brandRetrieve details for the brand bound to the API keybrands:read or *
GET/v1/brandsRetrieve the key-bound brand wrapped in a list arraybrands:read or *

Verify which brand your spk_... API key is attached to.

Terminal window
curl -X GET "https://api.ankk.app/v1/brand" \
-H "Authorization: Bearer spk_live_xxxxxxxx"
{
"brand_ref": "brand_01jm8v4k9example",
"name": "ACME Studio",
"slug": "acme-studio",
"role": "owner",
"is_locked": false
}
FieldTypeDescription
brand_refstringUnique brand identifier (ULID format)
namestringDisplay name of the brand
slugstringUnique slug used in URL paths
rolestringPermission role of the key issuer (owner)
is_lockedbooleanIndicates whether the brand is locked due to billing or policy restrictions

[!IMPORTANT] If is_locked: true, publishing and write operations will be blocked with 423 Locked (brand_locked). Check your subscription under Plans & Limits or Billing Guide.