Skip to content

User Endpoints ​

Get Current User ​

Returns information about the authenticated user.

GET /user/me

Parameters: None

Example Request:

bash
curl -X GET "https://app.sellerlegend.com/api/user/me" \
  -H "Authorization: Bearer {ACCESS_TOKEN}"

Response:

json
{
  "id": 1234,
  "name": "John Doe",
  "email": "[email protected]",
  "status": "active",
  "active": true
}

Response Fields:

FieldTypeDescription
idintegerUnique user identifier
namestringUser's full name
emailstringUser's email address
statusstringAccount status
activebooleanWhether the account is active

Python SDK:

python
from sellerlegend_api import SellerLegendClient

client = SellerLegendClient(access_token="YOUR_ACCESS_TOKEN")

user_info = client.user.get_me()
print(f"Name: {user_info['name']}")
print(f"Email: {user_info['email']}")

List User Accounts ​

Returns all Amazon accounts linked to the authenticated user.

GET /user/accounts

Parameters: None

Example Request:

bash
curl -X GET "https://app.sellerlegend.com/api/user/accounts" \
  -H "Authorization: Bearer {ACCESS_TOKEN}"

Response:

json
[
  {
    "account_title": "My Store US",
    "seller_id": "A1234567890",
    "marketplace": "amazon.com",
    "country_code": "US",
    "timezone": "America/Los_Angeles"
  },
  {
    "account_title": "My Store UK",
    "seller_id": "A0987654321",
    "marketplace": "amazon.co.uk",
    "country_code": "GB",
    "timezone": "Europe/London"
  }
]

Response Fields:

FieldTypeDescription
account_titlestringDisplay name of the account
seller_idstringAmazon Seller ID
marketplacestringAmazon marketplace domain
country_codestringTwo-letter country code
timezonestringAccount timezone

Python SDK:

python
accounts = client.user.get_accounts()

for account in accounts:
    print(f"{account['account_title']} ({account['marketplace']})")

TIP

Use the account_title, seller_id + marketplace_id, or group_title from this response to select accounts in other API calls. See Account Selection.