cURL
curl --request GET \ --url https://api.example.com/api/profiles/me \ --header 'Authorization: <authorization>'
{ "id": "<string>", "email": "<string>", "full_name": "<string>", "company_name": "<string>", "role": "<string>", "registration_status": "<string>", "client_id": "<string>", "created_at": "<string>", "updated_at": "<string>", "approved_at": "<string>" }
Get the authenticated user’s profile
Bearer <firebase_id_token>
curl https://api.sari-platform.com/api/profiles/me \ -H "Authorization: Bearer <firebase_id_token>"
admin
client
pending
approved
rejected
{ "id": "550e8400-e29b-41d4-a716-446655440000", "email": "user@example.com", "full_name": "John Doe", "company_name": "Acme Corp", "role": "client", "registration_status": "approved", "client_id": "client_abc123", "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-15T10:30:00Z", "approved_at": "2024-01-16T09:00:00Z" }