palbaseDocs

Palbase IAP · API

GET/iap/placements/attributes

List the attribute keys apps send

The attribute keys the project's apps sent with a placement's paywall (X-Palbase-Attributes), as the apps said them: a suggestion for writing attribute conditions, not a list of what an app defines. They are unverified — any holder of the project's publishable key can send a key. Each key with the JSON type it was last sent as (a string that reads as a number is a string), the hours it was seen in, and when it was last seen; the values are never kept. The most used come first: by seen_hours, then the newest seen. A key is seen again at most once an hour (last_seen_at is the hour's, seen_hours rises at most once an hour). A project keeps at most 200 keys; past them a new key takes the place of the key seen longest ago when that one was last seen over 24 hours ago, else it is not kept — keys sent once age out, the keys apps go on sending stay.

Called by your server, with the project's secret key.

curl
curl -X GET "https://<your-ref>.palbase.studio/iap/placements/attributes" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The keys

400The request is malformed, or a field breaks a rule (the error names which)

401No key, not a key of this project, or a token that is not valid (the edge's answer)

403Not the project's secret key (`secret_key_required`)

429Over the project's request limit; Retry-After says when to try again

503Temporarily unavailable; retrying is safe after Retry-After

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation ListAttributeKeys of iap's contract.