curl --request POST \
--url https://api.comm.com/api/register \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "jsmith@example.com",
"password": "<string>",
"password_confirmation": "<string>"
}'
{
"access_token": "<string>",
"token_type": "bearer",
"expires_in": 3360
}
curl --request POST \
--url https://api.comm.com/api/register \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "jsmith@example.com",
"password": "<string>",
"password_confirmation": "<string>"
}'
{
"access_token": "<string>",
"token_type": "bearer",
"expires_in": 3360
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The response is of type object
.