Skip to content

New account registration with API #2821

Discussion options

You must be logged in to vote

@helpobras replace the url with your installation URL and params with required values

curl

curl --location --request POST 'http://localhost:3000/api/v1/accounts' \
--header 'Content-Type: application/json' \
--data-raw '{
   "email": "[email protected]",
   "account_name": "Test Account",
   "user_full_name": "Test User",
   "password": "Password1!"
}'

php

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://localhost:3000/api/v1/accounts',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => '…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@helpobras
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by sojan-official
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dantemessy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants