Add User

POST https://api.stream-io-api.com/api/v1.0/user?api_key=2yxg5ueum4b7

Request Params

KeyDatatypeRequiredDescription
api_keystring
get_or_createbooleanOptional - If true, if a user with the same ID already exists, it will be returned. Otherwise, the endpoint will return 409 Conflict.

Request Body

{"id"=>"Michum", "data"=>{"extra"=>"fields"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring
Stream-Auth-Typestring