List accounts
const url = 'https://api-v1.tailwind.ai/v1/accounts';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api-v1.tailwind.ai/v1/accounts \ --header 'Authorization: Bearer <token>'List all Pinterest accounts for the authenticated organization.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”List of accounts
object
object
object
Account ID
Pinterest user ID
Display name
Pinterest username
Profile image URL
Whether the Pinterest token is valid
Whether the domain is verified
When the account was connected (Unix timestamp)
object
Unique request ID for debugging
Examplegenerated
{ "data": { "accounts": [ { "id": "example", "userId": "example", "displayName": "example", "username": "example", "avatarUrl": "example", "tokenAuthorized": true, "isDomainVerified": true, "createdAt": 1 } ] }, "meta": { "requestId": "example" }}Authentication required or invalid bearer credentials
object
object
Error code
Error message
Machine-readable denial reason. Present on PAYMENT_REQUIRED errors: insufficient_credits, trial_exhausted, no_access, account_not_connected.
object
Unique request ID for debugging
Example
{ "error": { "code": "UNAUTHORIZED", "message": "Invalid API key" }, "meta": { "requestId": "abc123" }}Rate limit exceeded
object
object
Error code
Error message
Machine-readable denial reason. Present on PAYMENT_REQUIRED errors: insufficient_credits, trial_exhausted, no_access, account_not_connected.
object
Unique request ID for debugging
Example
{ "error": { "code": "RATE_LIMIT_EXCEEDED", "message": "Daily rate limit of 5000 requests exceeded. Resets at midnight UTC." }, "meta": { "requestId": "abc123" }}