Get Current User Profile
This endpoint returns the profile information associated with the provided authentication token. It is a convenience endpoint that maps the authenticated session to a specific Ziwako user profile.
Use this endpoint to:
- Initialize the application state after login.
- Display "My Account" information.
- Check the current user's credit balance and billing plan.
Unlike the public profile endpoints, this returns sensitive, private data belonging to the user.
Authentication
This endpoint strictly requires a valid access token. The API identifies the user based on the token provided in the header.
X-API-Key<token>
In: header
Response Body
application/json
curl -X GET "https://example.com/profils/me"{ "type": "success", "code": "string", "status": 0, "message": "string", "data": { "id": "string", "username": "string", "firstName": "string", "lastName": "string", "fullName": "string", "profilPicture": { "Key": "string", "Bucket": "string", "Location": "string", "public": "string" }, "coverPicture": { "Key": "string", "Bucket": "string", "Location": "string", "public": "string" }, "profilType": "user", "authId": "string", "contacts": { "tels": [ "string" ], "emails": [ "string" ], "message": "string", "position": { "name": "string", "location": { "type": "Point", "coordinates": [ 0, 0 ] } }, "socialMedia": { "facebook": "string", "twitter": "string", "linkedin": "string", "instagram": "string", "tiktok": "string" }, "externalAccounts": [ { "provider": "string", "accountId": "string", "payload": {} } ] }, "billingPlan": {}, "planBenefices": { "maxSimultaneousSearch": 0, "maxContactsPerSearch": 0 }, "credit": 0, "balance": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "profilNumber": "string" }}