Ziwako Docs
ZiwakoRéférence APIProfils

Create User Profile

POST
/profils

This endpoint creates a new user profile. It is typically called immediately after a user successfully signs up via the authentication provider (e.g., Auth0).

The goal is to link the external authentication identity (authId) with a new internal Ziwako profile. This process initializes the user's account with default settings, a free billing plan, and an empty credit balance.

Authorization

X-API-Key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/profils" \  -H "Content-Type: application/json" \  -d '{    "username": "string",    "firstName": "string",    "lastName": "string",    "fullName": "string",    "authId": "string"  }'
{  "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"  }}