Skip to main content
GET
/
api
/
profiles
List All Profiles
curl --request GET \
  --url https://api.example.com/api/profiles/ \
  --header 'Authorization: <authorization>'

Authentication

Authorization
string
required
Bearer token: Bearer <admin_token>
This endpoint requires admin privileges.

Example Request

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

Response

Returns an array of profile objects.

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"
  },
  {
    "id": "550e8400-e29b-41d4-a716-446655440001",
    "email": "pending@example.com",
    "full_name": "Jane Smith",
    "company_name": "New Startup",
    "role": "client",
    "registration_status": "pending",
    "client_id": null,
    "created_at": "2024-01-16T08:00:00Z"
  }
]

Errors

StatusDescription
401Invalid or expired token
403Admin access required