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

email
string
required

The email address of the user to create

Response

user
User

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>"
    }
}