cURL
curl --request POST \ --url http://localhost:3091/v1/api/agencies/register \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "description": "<string>", "rccm": "<string>", "address": "<string>", "city": "<string>", "country": "<string>", "phone": "<string>", "email": "<string>", "siret": "<string>" } '
{ "id": 123, "name": "<string>", "description": "<string>", "rccm": "<string>", "address": "<string>", "city": "<string>", "country": "<string>", "phone": "<string>", "email": "<string>", "logoUrl": "<string>", "kycStatus": "<string>", "status": "<string>", "siret": "<string>", "ownerId": 123, "ownerName": "<string>", "walletBalance": 123, "createdAt": "2023-11-07T05:31:56Z" }
Creates an agency owned by the current verified user
JWT access token from POST /v1/api/auth/login
255
100
500
30
14
Agency created successfully