Import Users
Bulk imports given user accounts. This feature must be enabled by your account manager! If more than one user is sent in a request, that request is treated as a bulk import. Only one bulk import can be issued at a time. If only one user is set, you can call the endpoint in parallel.
POST /v1/publishers/users
curl \
-X POST https://api.bitlabs.ai/v1/publishers/users \
-H "X-S2S-Token: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"users":[{"uid":"your_unique_id","country":"DE","languages":["de","en"],"zipcode":"00000","birthdate":"1999-01-01","gender":"MALE","questions":[{"id":"string","network_id":42,"direct_values":["string"]}],"username":"string"}]}'
Request examples
{
"users": [
{
"uid": "your_unique_id",
"country": "DE",
"languages": [
"de",
"en"
],
"zipcode": "00000",
"birthdate": "1999-01-01",
"gender": "MALE",
"questions": [
{
"id": "string",
"network_id": 42,
"direct_values": [
"string"
]
}
],
"username": "string"
}
]
}
Response examples (200)
{
"data": {
"success_count": 42,
"errors": [
{
"uid": "string",
"invalid_birthdate": "string",
"invalid_gender": "string",
"invalid_zipcode": "string",
"invalid_question": "string",
"unsupported_languages": true,
"invalid_answer_format": {
"question": "string",
"reason": "string"
}
}
]
}
}