SuperdindaDocs
Accounts

Open a family account

POST
/accounts

The caller becomes its owner. First step of onboarding.

Authorization

Bearer
headerAuthorizationBearer <JWT>

Request Body

application/json
  1. body
name*string

the family as it names itself, e.g. "Família Silva"

Length1 <= length <= 120

Response Body

The account, with the caller as owner

application/json
  1. response
success*true
Value intrue
data*
Example Request
curl -X POST 'http://localhost:3000/accounts' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "success": true,  "data": {    "uid": "string",    "name": "string",    "role": "owner",    "onboardedAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z"  }}