Introduction to Refonte.AI API
Data Engine Core Resources
Data Engine Tasks Types
Obtains essential data about every team member connected to your account.
Request
Python
GET /v1/teams
import requests
url = "https://api.refonte.com/v1/teams"
headers = {
"accept": "application/json",
"authorization": "Basi c2NhbGVpbnRfZWMyMjU0MWQ2OWE1ND..."
}
response = requests.get(url, headers=headers)
print(response.text)
Sends out email invites to one or more members on your team. `team_role` has three possible roles: manager, member, and labeler. returns data pertaining to every team member.
email string required
Array of emails of teammates you want to invite.
team_role string required
Role of invited teammate. Allowed values are: labeler (Studio only), member, or manager.
Request
Python
POST /v1/teams/invite
import requests
url = "https://api.refonte.com/v1/teams/invite"
payload = {
"emails": ["refonte@admin.com"],
"team_role": "labeler"
}
headers = {
"accept": "application/json",
"content-type": "application/json",
"authorization": "Basic c2NhbGVpbnRfZWMyMjU0MWQ2OWE1NDBlYWE..."
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
Response
[
{
"email": "refonte@admin.com",
"disableRapidEmails": false,
"isStudioLabeler": false,
"firstName": "lautaro",
"lastName": "rangil",
"company": "Refonte Ai",
"role": "admin"
},
{
"email": "refonte@admin.com",
"disableRapidEmails": false,
"isStudioLabeler": false,
"role": "member"
},
{
"email": "refonte@admin.com",
"disableRapidEmails": false,
"isStudioLabeler": false,
"role": "member"
}
]
Modifies the non-administrator team members' roles. The emails on the team should be a list of those who are labelers, members, managers, or disabled. A manager, team member, or labeler should be the team role. provides data about every member of your team.
email string required
Array of emails of teammates you want to invite.
team_role string required
Role of invited teammate. Allowed values are: labeler (Studio only), member, or manager.
Request
Python
POST /v1/teams/set_role
import requests
url = "https://api.refonte.com/v1/teams/set_role"
headers = {
"accept": "application/json",
"content-type": "application/json",
"authorization": "Basic c2NhbGVpbnRfZWMyMjU0MWQ2OWE1NDBlYWE0O.."
}
response = requests.post(url, headers=headers)
print(response.text)
Response
[
{
"email": "refonte@admin.com",
"disableRapidEmails": false,
"isStudioLabeler": false,
"firstName": "lautaro",
"lastName": "rangil",
"company": "Refonte Ai",
"role": "admin"
},
{
"email": "refonte@admin.com",
"disableRapidEmails": false,
"isStudioLabeler": false,
"role": "member"
},
{
"email": "refonte@admin.com",
"disableRapidEmails": false,
"isStudioLabeler": false,
"role": "member"
},
{
"email": "refonte@admin.com",
"expiry": "2023-08-09T16:12:38.072Z",
"role": "invited",
"isStudioLabeler": true
}
]
Gets the current project assignments of all active users in your team (does not include “invited” or “disabled” team members).
Request
Python
GET /v1/studio/assignments
import requests
url = "https://api.refonte.com/v1/studio/assignments"
headers = {
"accept": "application/json",
"authorization": "Basic c2NhbGVpbnRfZWMyMjU0MWQ2OWE1NDBlYWE0OTgy.."
}
response = requests.get(url, headers=headers)
print(response.text)
Response
{
"id": "Nc6yKKMpcxiiFxp6",
"message_id": "LoPsJaMcPBuFNjg1",
"filename": "Invoice_room_service__Plaza_Hotel.pdf",
"file_url": "https://assets.invoice_room_service__Plaza_Hotel.pdf",
"file_type": "application/pdf",
"file_size": 21352,
"created_at": 692233200
}
Gets the current project assignments of all active users in your team (does not include “invited” or “disabled” team members).
email string required
Array of emails of teammates
projects string
Array of projects to assign.
Request
Python
POST /v1/studio/assignments/add
import requests
url = "https://api.refonte.com/v1/studio/assignments/add"
headers = {
"accept": "application/json",
"content-type": "application/json",
"authorization": "Basic c2NhbGVpbnRfZWMyMjU0MWQ2O..."
}
response = requests.post(url, headers=headers)
print(response.text)
Response
{
"id": "Nc6yKKMpcxiiFxp6",
"message_id": "LoPsJaMcPBuFNjg1",
"filename": "Invoice_room_service__Plaza_Hotel.pdf",
"file_url": "https://assets.invoice_room_service__Plaza_Hotel.pdf",
"file_type": "application/pdf",
"file_size": 21352,
"created_at": 692233200
}
Projects from certain team members that are not assigned. returns all assigned tasks to the team members.
email string required
Array of emails of teammates
projects string
Array of projects to unassign.
Request
Python
POST /v1/studio/assignments/remove
import requests
url = "https://api.refonte.com/v1/studio/assignments/remove"
headers = {
"accept": "application/json",
"content-type": "application/json",
"authorization": "Basic c2NhbGVpbnRfZWMyMjU0MWQ2OWE1NDBlYWE0OTgy..."
}
response = requests.post(url, headers=headers)
print(response.text)
Response
{
"id": "Nc6yKKMpcxiiFxp6",
"message_id": "LoPsJaMcPBuFNjg1",
"filename": "Invoice_room_service__Plaza_Hotel.pdf",
"file_url": "https://assets.invoice_room_service__Plaza_Hotel.pdf",
"file_type": "application/pdf",
"file_size": 21352,
"created_at": 692233200
}
Returns all labeler groups for the project specified in URL.
project string required
Array of emails of teammates
Request
Python
GET /v1/studio/projects/{project}/groups
import requests
url = "https://api.refonte.com/v1/studio/projects/project_name/groups"
headers = {
"accept": "application/json",
"authorization": "Basic c2NhbGVpbnRfZWMyMjU0MWQ2OWE1ND..."
}
response = requests.get(url, headers=headers)
print(response.text)
Response
{
"id": "Nc6yKKMpcxiiFxp6",
"message_id": "LoPsJaMcPBuFNjg1",
"filename": "Invoice_room_service__Plaza_Hotel.pdf",
"file_url": "https://assets.invoice_room_service__Plaza_Hotel.pdf",
"file_type": "application/pdf",
"file_size": 21352,
"created_at": 692233200
}
Team members are added or removed from a designated labeler group. Only provides details on that particular group.
project string required
Array of emails of teammates
group string required
Request
Python
POST /v1/studio/projects/{project}/groups/{group}
import requests
url = "https://api.refonte.com/v1/studio/projects/project_name/groups/group_name"
headers = {
"accept": "application/json",
"content-type": "application/json",
"authorization": "Basic c2NhbGVpbnRfZWMyMjU0MWQ2OWE1NDBlYWE0O..."
}
response = requests.put(url, headers=headers)
print(response.text)
Response
{
"id": "Nc6yKKMpcxiiFxp6",
"message_id": "LoPsJaMcPBuFNjg1",
"filename": "Invoice_room_service__Plaza_Hotel.pdf",
"file_url": "https://assets.invoice_room_service__Plaza_Hotel.pdf",
"file_type": "application/pdf",
"file_size": 21352,
"created_at": 692233200
}
Returns basic information about all pending batches, in order of priority.
project string required
Array of emails of teammates
group string required
Request
Python
GET /v1/studio/batches
import requests
url = "https://api.refonte.com/v1/studio/batches"
headers = {
"accept": "application/json",
"authorization": "Basic c2NhbGVpbnRfZWMyMjU0MWQ2OWE1NDBlY....."
}
response = requests.get(url, headers=headers)
print(response.text)
Response
{
"id": "Nc6yKKMpcxiiFxp6",
"message_id": "LoPsJaMcPBuFNjg1",
"filename": "Invoice_room_service__Plaza_Hotel.pdf",
"file_url": "https://assets.invoice_room_service__Plaza_Hotel.pdf",
"file_type": "application/pdf",
"file_size": 21352,
"created_at": 692233200
}
Sets the labeler group assignment for the given batch, not adds to it. Additionally, you can add specific members by adding their email as a group name. Simply provides information about the designated batch in return.
batch string required
List of group names
group string
Request
Python
POST /v1/studio/batches/{batch}
import requests
url = "https://api.refonte.com/v1/studio/batches/batch_name"
headers = {
"accept": "application/json",
"content-type": "application/json",
"authorization": "Basic c2NhbGVpbnRfZWMyMjU0MWQ2OWE1NDBlYWE0OTg..."
}
response = requests.put(url, headers=headers)
print(response.text)
Response
{
"id": "Nc6yKKMpcxiiFxp6",
"message_id": "LoPsJaMcPBuFNjg1",
"filename": "Invoice_room_service__Plaza_Hotel.pdf",
"file_url": "https://assets.invoice_room_service__Plaza_Hotel.pdf",
"file_type": "application/pdf",
"file_size": 21352,
"created_at": 692233200
}
Team members are added or removed from a designated labeler group. Only provides details on that particular group.
group string
Request
Python
POST /v1/studio/batches/set_priorities
import requests
url = "https://api.refonte.com/v1/studio/batches/set_priorities"
headers = {
"accept": "application/json",
"content-type": "application/json",
"authorization": "Basic c2NhbGVpbnRfZWMyMjU0MWQ2OWE1ND...."
}
response = requests.post(url, headers=headers)
print(response.text)
Response
{
"id": "Nc6yKKMpcxiiFxp6",
"message_id": "LoPsJaMcPBuFNjg1",
"filename": "Invoice_room_service__Plaza_Hotel.pdf",
"file_url": "https://assets.invoice_room_service__Plaza_Hotel.pdf",
"file_type": "application/pdf",
"file_size": 21352,
"created_at": 692233200
}
Returns the batch priority order to its initial position. Calibration batches are arranged by default, followed by creation date, puts each batch back in the original priority order.
group string
Request
Python
POST /v1/studio/batches/reset_priorities
import requests
url = "https://api.refonte.com/v1/studio/batches/reset_priorities"
headers = {
"accept": "application/json",
"authorization": "Basic c2NhbGVpbnRfZWMyMjU0MWQ2OWE1NDBlYW..."
}
response = requests.post(url, headers=headers)
print(response.text)
Response
{
"id": "Nc6yKKMpcxiiFxp6",
"message_id": "LoPsJaMcPBuFNjg1",
"filename": "Invoice_room_service__Plaza_Hotel.pdf",
"file_url": "https://assets.invoice_room_service__Plaza_Hotel.pdf",
"file_type": "application/pdf",
"file_size": 21352,
"created_at": 692233200
}
This API returns a list of training attempts matching the provided parameters and related data. You must set one of `quality_task_ids` or `labeler_emails` (or both) in the query parameters to use this endpoint.
quality_task_ids array of strings
labeler_emails array of strings
next_token array of strings
limit int32
Request
Python
GET /v1/quality/labelers
import requests
url = "https://api.refonte.com/v1/quality/labelers"
headers = {
"accept": "application/json",
"authorization": "Basic c2NhbGVpbnRfZWMyMjU0MWQ2OWE1NDBlY..."
}
response = requests.get(url, headers=headers)
print(response.text)
Response
{
"id": "Nc6yKKMpcxiiFxp6",
"message_id": "LoPsJaMcPBuFNjg1",
"filename": "Invoice_room_service__Plaza_Hotel.pdf",
"file_url": "https://assets.invoice_room_service__Plaza_Hotel.pdf",
"file_type": "application/pdf",
"file_size": 21352,
"created_at": 692233200
}
Sends unfinished assignments that require at least one try to be finished. All_batches takes precedence if you offer batches as an array of batch names and all_batches as true.
projectName string required
List of group names
all_batches boolean
batches array of strings
Request
Python
GET /v1/studio/projects/{projectName}/send_tasks_to_completed
import requests
url =
"https://api.refonte.com/v1/studio/projects/project_name/send_tasks_to_completed"
headers = {
"content-type": "application/json",
"authorization": "Basic c2NhbGVpbnRfZWMyMjU0MWQ2OWE1NDBlY...."
}
response = requests.post(url, headers=headers)
print(response.text)
Response
{
"id": "Nc6yKKMpcxiiFxp6",
"message_id": "LoPsJaMcPBuFNjg1",
"filename": "Invoice_room_service__Plaza_Hotel.pdf",
"file_url": "https://assets.invoice_room_service__Plaza_Hotel.pdf",
"file_type": "application/pdf",
"file_size": 21352,
"created_at": 692233200
}
Studio projects only. This endpoint updates the pipeline config of your project. `/projects/[Name]/updatePipelineConfig is also a valid endpoint option.
name string required
List of group names
pipeline string
Studio projects only. Specify the pipeline of the project. Must use either `standard_task` or `consensus_task`.
consensus_attempts integer
Studio consensus projects only. Specify the number of attempts
Updated about 2 months ago