GroundsocialDocs

API · Target

GET /target/categories

Target categories and their subcategories.

RequestGET /v1/target/categories
Operation idtarget.categories.get
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Target categories and their subcategories.

Query parameters

NameTypeRequiredDescription
category_idstringnoCategory id (default root).

Responses

StatusMeaningSchema
200The category and its children.TargetCategories
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The item, category or place does not exist.Error
429Too many requests. Wait for Retry-After seconds.Error
503Target is temporarily unavailable. Retryable; nothing was charged.Error

TargetCategories fields

FieldTypeDescription
category_idstring
categoryobject | null
childrenobject[]

Errors use one shape everywhere; see Errors for every code and what to do.