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>"
}
}
Create a new user, or get an existing user by email
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>"
}
}
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>"
}
}