Fetch Profile Info
Fetch Profile Info API endpoint for Sweeppea. POST account/profile. Complete documentation with code examples in cURL, JavaScript, and Python.
POST
account/profile
Description
This endpoint allows you to fetch user profile information including personal and business data. Use this to retrieve complete user account information programmatically through the Sweeppea API.
Code Examples
curl -X POST "https://api-v3.sweeppea.com/account/profile" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
Response
200 OK
{
"Response": true,
"Data": {
"UserToken": "uuid-v4-string",
"Nickname": "string",
"Email": "string",
"UserType": 1,
"Status": true,
"CreationDate": "2024-01-01T00:00:00.000Z",
"LastLogin": "2024-01-01T00:00:00.000Z",
"IsShopifyAccount": false,
"ProfileData": {
"FullName": "string",
"MobilePhone": "string",
"Address": "string",
"City": "string",
"State": "string",
"ZipCode": "string",
"Country": "string",
"Avatar": "string",
"BirthDate": "2024-01-01T00:00:00.000Z"
}
}
}
Error Responses
401 Unauthorized
{
"Response": false,
"Message": "Invalid or Missing Bearer Token",
"Code": 401
}
403 Forbidden
{
"Response": false,
"Message": "Invalid API Token",
"Code": 403
}
404 Not Found
{
"Response": false,
"Message": "User Profile Not Found",
"Code": 404
}