Standard
To ensure seamless integration and interoperability, it is recommended that all Exchange Oracles adhere to certain endpoint standards.
The interaction between the annotation tool and the exchange oracle is unique for each annotation tool, and therefore, it is not outlined in this document.
Webhook
Used for receiving notifications about various events within the protocol
POST
[EXCHANGE_ORACLE_URL]/webhook
Headers
Name | Type | Description |
---|---|---|
human-signature* | String | Signature used for origin authentication. |
Request Body
Name | Type | Description |
---|---|---|
escrow_address* | String | The address of the escrow involved in the event. |
chain_id* | Number | The identifier of the chain where the escrow exists. |
event_type* | Enum | The type of event, which can be one of the following:
|
event_data | Object | It gives information about the event, like refusal reason for an invalid submission. |
escrow_created
escrow_canceled
submission_rejected
Get jobs list
Allows retrieving a list of jobs available to be solved
GET
[EXCHANGE_ORACLE_URL]/job
Query Parameters
Name | Type | Description |
---|---|---|
chain_id | Number | Chain Id from which the user wants to get the list of jobs. If empty return all chains. |
page_size | Number | Specifies the number of items to include in each page. Max 10. Default 5. |
page | Number | Indicates the page number. Default 0. |
sort | String | Specifies the order in which the items are returned based on |
job_type | String | Job type |
fields | String[] | List of the fields that should be returned for every available job. Available fields:
|
escrow_address | String | Escrow address. Should be used in case requester wants to return only details about the specific escrow. |
sort_field | String | Field used for sorting returned results. Default value: Available fields:
|
status | Number | Job status:
If no status is provided, return all. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer token generated by Reputation Oracle containing email, address, kyc_status and reputation_network |
Assign job
Request to get a job assigned to a specific user
POST
[EXCHANGE_ORACLE_URL]/assignment
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer token generated by Reputation Oracle containing email, address, kyc_status and reputation_network |
Request Body
Name | Type | Description |
---|---|---|
escrow_address* | String | Escrow address |
chain_id* | Number | Chain id |
Get jobs assigned
Allows retrieving a list of jobs assigned to a specific worker
GET
[EXCHANGE_ORACLE_URL]/assignment
Query Parameters
Name | Type | Description |
---|---|---|
status | Enum | Status of the assignment. Values:
|
page | Number | Indicates the page number. |
sort | String | Specifies the order in which the items are returned based on |
page_size | Number | Specifies the number of items to include in each page. Max value: 10. Default: 5 |
escrow_address | String | Escrow address |
chain_id | Number | Chain id |
assignment_id | Id | Assignment id. Should be used in case requester wants to return only details about the specific assignment. |
sort_field | String | Field used for sorting returned results. Default value: Available fields:
|
job_type | String | Job type |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer token generated by Reputation Oracle containing email, address, kyc_status and reputation_network |
Get assignment stats
Request to get assignment stats for worker that sends the request
GET
[EXCHANGE_ORACLE_URL]/stats/assignment
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer token generated by Reputation Oracle containing email, address, kyc_status and reputation_network |
Oracle stats
Oracle statistics
GET
[EXCHANGE_ORACLE_URL]/stats
It's an open endpoint, but rate limiter should be applied
Last updated