Users
Get my user information
Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2authorizationCodeRequiredAuthorization URL: Token URL: Refresh URL:
OAuth2 Bearer token authentication
Responses
200
Gets my information
application/json
idstringOptional
identstringOptional
localestringOptional
emailstringOptional
401
Unauthorized
application/json
403
Forbidden
application/json
get/v1/clients/users/me
GET /v1/clients/users/me HTTP/1.1
Host: api.textmaster.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"ident": "C-982C-FM",
"callback": {
"waiting_assignment": {
"url": "http://my.host/waiting_assignment_callback",
"format": "json"
},
"completed": {
"url": "http://my.host/completed_callback",
"format": "json"
}
},
"locale": "en",
"email": "factory_122@example.com",
"wallet": {
"current_money": 0,
"currency_code": "USD"
},
"id": "61698aff8b81926d91c0f72c",
"contact_information": {
"first_name": "john",
"last_name": "doe",
"company": "company",
"address": "12, street",
"address2": null,
"city": "Plougasnou",
"zip_code": "29188",
"state_region": null,
"country": "FR",
"vat_number": null,
"profession": "lost",
"website": null,
"mother_tongue": null
}
}Code samples
Update callbacks for my user
Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2authorizationCodeRequiredAuthorization URL: Token URL: Refresh URL:
OAuth2 Bearer token authentication
Path parameters
user_idstringRequired
Your own User ID
Body
Responses
200
Information Updated
application/json
idstringOptional
identstringOptional
localestringOptional
emailstringOptional
401
Unauthorized
application/json
403
Forbidden
application/json
422
Invalid callback URL
application/json
put/v1/clients/users/{user_id}
PUT /v1/clients/users/{user_id} HTTP/1.1
Host: api.textmaster.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 118
{
"user": {
"callback": {
"waiting_assignment": {
"url": "text",
"format": "text"
},
"completed": {
"url": "text",
"format": "text"
}
}
}
}{
"ident": "C-982C-FM",
"callback": {
"waiting_assignment": {
"url": "http://my.host/waiting_assignment_callback",
"format": "json"
},
"completed": {
"url": "http://my.host/completed_callback",
"format": "json"
}
},
"locale": "en",
"email": "factory_122@example.com",
"wallet": {
"current_money": 0,
"currency_code": "USD"
},
"id": "61698aff8b81926d91c0f72c",
"contact_information": {
"first_name": "john",
"last_name": "doe",
"company": "company",
"address": "12, street",
"address2": null,
"city": "Plougasnou",
"zip_code": "29188",
"state_region": null,
"country": "FR",
"vat_number": null,
"profession": "lost",
"website": null,
"mother_tongue": null
}
}Code samples
Last updated
Was this helpful?