Tasks
Create a Chat Task
Create a new Task for GenAI projects. Uses structured task templates, not free-form instructions.
POST
Authentication
Authentication
Every request sent to Scale’s API requires authentication. In short, your API Key is the Bearer token. See the Authentication section for more details.
Required parameters
You are expected to provide one of the following:
- Project ID (
project_id
) - Project Name (
project_name
)
Template Variables
Template variables are key-value pairs that populate your project’s task template. The available variables depend on your specific project configuration.
Common template variables:
prompt
- The main instruction or question for the taskcontext
- Additional context or background informationexamples
- Sample inputs or outputs to guide the taskconstraints
- Specific requirements or limitations
Authorizations
Your API Key is the Bearer token. See the Authentication section to learn how to access your key.
Body
application/json
Response
200
application/json
Chat task created successfully.
The response is of type object
.