Get reward properties

Attention

The toloka.yandex.com domain will be disabled starting April 1, 2023. Please use the toloka.dev domain for API requests.

Gets the properties of the reward issued.

Request

Production version
Sandbox
GET https://toloka.dev/api/v1/user-bonuses/<bonus_id>
Authorization: OAuth <OAuth token>

Path parameters

ParameterOverview
bonus_idID of the reward issued.

Headers

TitleOverview
AuthorizationA token for account authorization. Add OAuth as a prefix.

Response

Information about a reward.

{
"user_id": "21c4f092ebad180cf56b9babe0ef9f19",
"amount": 1.5,
"assignment_id": "6946cefa-32af-4f62-b530-8d2c71fa2966",
"private_comment": "Good job!",
"public_title": {
"EN": "Completed tasks"
},
"public_message": {
"EN": "10 tasks successfully completed"
},
"without_message": false,
"id": "2092",
"created": "2021-02-12T10:37:36.631"
}
ParameterOverview
user_idstring

Toloker ID.
amountfloat

The dollar amount of the reward.
assignment_idstring

ID of the Toloker's response to the task a reward is issued for.
private_commentstring

Comments that are only visible to the requester.
public_titleobject

The subject of the message for the Toloker. You can enter it in multiple languages (the message will be sent in the Toloker's language). Format: "<language RU/EN/TR/ID/FR>": "<title text>".
public_messageobject

Message text for the Toloker. You can enter it in multiple languages (the message will be sent in the Toloker's language). Format: "<language RU/EN/TR/ID/FR>": "<message text>".
without_messageboolean

Allows you not to send a reward message to the Toloker. The default value is false.

To issue a reward without a message, specify null for public_title and public_message and true for without_message.
idstring

Reward ID.
createdstring

Date the reward was awarded, in UTC using ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss]
Contact support
Toloka API
OverviewAccessing the APIRate limiting
Quick start
Reference
Project
Pools
Training
Subscriptions to events
Toloker selection
Ways to upload tasks
Tasks
Task suites
Tracking operations
Getting responses
Checking completed tasks
Rewards
Messages for Tolokers
Various parameters
Libraries