RelayAPI

List ad accounts for a social account

GET
/v1/ads/accounts
AuthorizationBearer <token>

API key (rlay_live_* or rlay_test_*)

In: header

Query Parameters

social_account_id?string

Filter by social account ID

workspace_id?string

Filter by workspace ID

q?string

Search by name or platform account ID

Lengthlength <= 200
cursor?string
limit?integer
Default20
Range1 <= value <= 100

Response Body

application/json

application/json

application/json

curl -X GET "https://api.relayapi.dev/v1/ads/accounts"
{
  "data": [
    {
      "id": "string",
      "social_account_id": "string",
      "platform": "meta",
      "platform_ad_account_id": "string",
      "name": "string",
      "currency": "string",
      "timezone": "string",
      "status": "string"
    }
  ],
  "next_cursor": "string",
  "has_more": true
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}

Found something wrong? Help us improve this page.

Submit an Issue
Requires a GitHub account.View repo