Accounts
Endpoints related to user accounts and social media accounts.
Fetches the current user's information, including subscription status and API key if available.
Authorizations
Responses
200
Current user information
application/json
401
Unauthorized
application/json
get
/v2/users/meGET /v2/users/me HTTP/1.1
Host: backend.blotato.com
blotato-api-key: YOUR_API_KEY
Accept: */*
{
  "id": "user_12345",
  "subscriptionStatus": "active",
  "apiKey": "your-api-key"
}Fetches the current user's social media accounts. Optionally filter by platform.
Authorizations
Query parameters
platformstring · enumOptionalExample: 
Social media platform
twitterPossible values: Responses
200
Default Response
application/json
401
Unauthorized
application/json
500
Server error
application/json
get
/v2/users/me/accountsGET /v2/users/me/accounts HTTP/1.1
Host: backend.blotato.com
blotato-api-key: YOUR_API_KEY
Accept: */*
{
  "items": [
    [
      {
        "id": "12345",
        "platform": "twitter",
        "fullname": "John Doe",
        "username": "@johndoe"
      }
    ]
  ]
}Fetches the current user's subaccounts for a specific account. Subaccounts are typically used for platforms like Facebook where a user can have multiple pages.
Authorizations
Path parameters
accountIdstringRequired
Responses
200
Default Response
application/json
401
Unauthorized
application/json
500
Server error
application/json
get
/v2/users/me/accounts/{accountId}/subaccountsGET /v2/users/me/accounts/{accountId}/subaccounts HTTP/1.1
Host: backend.blotato.com
blotato-api-key: YOUR_API_KEY
Accept: */*
{
  "items": [
    {
      "id": "facebook_page_12345",
      "accountId": "account_67890",
      "name": "My Facebook Page"
    }
  ]
}Last updated
