Core API
Create or Get User
Core API
Create or Get User
Create a new user, or get an existing user by email
POST
/
internal
/
v3
/
users
/
create-or-get
curl --location --request POST 'https://api.picaos.com/internal/v3/users/create-or-get' \
--header 'x-pica-secret: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "test@example.com"
}'
{
"_id": "67ea97af2c6e7e0013d412e4",
"email": "test@example.com",
"secrets": {
"live": "<USER_LIVE_KEY>",
"sandbox": "<USER_SANDBOX_KEY>"
}
}
Body Parameters
The email address of the user to create
Response
The created user object
curl --location --request POST 'https://api.picaos.com/internal/v3/users/create-or-get' \
--header 'x-pica-secret: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "test@example.com"
}'
{
"_id": "67ea97af2c6e7e0013d412e4",
"email": "test@example.com",
"secrets": {
"live": "<USER_LIVE_KEY>",
"sandbox": "<USER_SANDBOX_KEY>"
}
}
curl --location --request POST 'https://api.picaos.com/internal/v3/users/create-or-get' \
--header 'x-pica-secret: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "test@example.com"
}'
{
"_id": "67ea97af2c6e7e0013d412e4",
"email": "test@example.com",
"secrets": {
"live": "<USER_LIVE_KEY>",
"sandbox": "<USER_SANDBOX_KEY>"
}
}