Profiles
Create Profile
Section titled “Create Profile”- Endpoint:
POST /v1/profile - Description: Creates a profile for an operator or integrator.
- Headers:
Authorization: Bearer <accessToken>x-signed-request: <signature>Content-Type: application/json
- Body:
Field Type Required Description email string Yes Operator email description string Yes Display name or description avatarUrl string No Profile avatar URL profileType string Yes cassino,integrator, ordemo
⚠️ Attention
For sandbox environment, only
demois supported
- Success Response (201):
{ "status": "success", "data": { "profileId": "507f1f77bcf86cd799439011" }}- Errors:
400,401,403,500
List Profiles
Section titled “List Profiles”-
Endpoint:
GET /v1/profile -
Description: Lists profiles for the API client.
-
Headers:
Authorization: Bearer <accessToken> -
Query Params:
Field Type Required Description pageIndex number No Default 1 pageSize number No Default 20 -
Success Response (200):
{ "status": "success", "data": [ { "id": "507f1f77bcf86cd799439011", "email": "casino@example.com", "description": "My Casino", "avatarUrl": "https://cdn.example.com/logo.png", "profileType": "cassino", "createdAt": "2025-01-01T10:00:00.000Z" } ], "pagination": { "pageIndex": 1, "pageSize": 20, "totalCount": 1 }}- Errors:
400,401,500
Update Profile
Section titled “Update Profile”-
Endpoint:
PUT /v1/profile/{profileId} -
Description: Updates profile details.
-
Headers:
Authorization: Bearer <accessToken>x-signed-request: <signature>
-
Path Params:
profileId(string) -
Body: Any of
email,description,avatarUrl -
Success Response (200):
{ "status": "success" }- Errors:
400,401,403,404,500