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": "526907ff-932e-4222-81ff-83f8adefad05",
    "email": "test@example.com",
    "throughput": 100,
    "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 and their secrets
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": "526907ff-932e-4222-81ff-83f8adefad05",
    "email": "test@example.com",
    "throughput": 100,
    "secrets": {
      "live": "<USER_LIVE_KEY>",
      "sandbox": "<USER_SANDBOX_KEY>"
    }
}