List your connected accounts with keyset pagination and optional filters by platform or handle.
GET
/v1/accountsAPI key (dra_…) or dashboard JWT
List connected social accounts with keyset pagination and optional filters.
AuthorizationstringheaderrequiredBearer token. Use a Dravo API key (`dra_…`) or a dashboard JWT.
platformstringqueryFilter by platform.
qstringquerySearch on handle/metadata.
limitintquery1 to 100 (default 50).
cursorstringqueryPagination cursor.
itemsobject[]Connected accounts; each has the fields below.
idstringConnected account id.
platformstringPlatform: meta, instagram, facebook, x, linkedin or tiktok.
handlestringoptionalAccount handle/username.
healthstringactive, expiring, expired or requires_reconnect.
connection_typestringAlways oauth.
next_cursorstringoptionalCursor for the next page; null on the last page.
totalintegerTotal connected accounts.
const response = await fetch("https://api.dravo.dev/v1/accounts", { method: "GET", headers: { "Authorization": "Bearer " + process.env.DRAVO_API_KEY,}});const data = await response.json();console.log(data);{ "items": [ { "id": "acc_8f2c1d", "platform": "x", "handle": "@dravo", "health": "active", "connection_type": "oauth" } ], "next_cursor": null, "total": 1}