Skip to main content
GET
/
api
/
profiles
/
me
Get Current Profile
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>"
}

Authentication

Authorization
string
required
Bearer token: Bearer <firebase_id_token>

Example Request

curl https://api.sari-platform.com/api/profiles/me \
  -H "Authorization: Bearer <firebase_id_token>"

Response

id
string
Unique profile identifier (UUID)
email
string
User’s email address
full_name
string
User’s full name
company_name
string
Organization name
role
string
User role: admin or client
registration_status
string
Status: pending, approved, or rejected
client_id
string
API client identifier (only for approved clients)
created_at
string
Account creation timestamp
updated_at
string
Last update timestamp
approved_at
string
Approval timestamp (if approved)

Example Response

{
  "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"
}

Errors

StatusDescription
401Invalid or expired token
404Profile not found