API
Quick start
Build advanced agents with the Twin API
The Twin API enables you to build advanced agents with complex logic, by creating sequences of tasks, batch of tasks, conditional tasks and by composing tasks with each others - similar to how humans execute complex tasks.
1
Get your API Key
Sign up on our Playground and create a new API key. Remember, your API key is your access secret—keep it safe with environment variables.
2
Install package
Install the requests python package necessary to run the API.
3
Launch and monitor your first task
Use the following Python code to create a task and monitor the agent’s progress while completing the task
Output Example
4
Check your task in the playground
Go the playground history to check your task.