User Endpoints
Get Current User
Returns information about the authenticated user.
GET /user/meParameters: 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:
| Field | Type | Description |
|---|---|---|
id | integer | Unique user identifier |
name | string | User's full name |
email | string | User's email address |
status | string | Account status |
active | boolean | Whether 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/accountsParameters: 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:
| Field | Type | Description |
|---|---|---|
account_title | string | Display name of the account |
seller_id | string | Amazon Seller ID |
marketplace | string | Amazon marketplace domain |
country_code | string | Two-letter country code |
timezone | string | Account 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.