OpenHands Cloud provides a REST API that allows you to programmatically interact with OpenHands. This guide explains how to obtain an API key and use the API to start conversations and retrieve their status.
API Keys
tab.Create API Key
.Create
.Parameter | Type | Required | Description |
---|---|---|---|
initial_user_msg | string | Yes | The initial message to start the conversation. |
repository | string | No | Git repository name to provide context in the format owner/repo . You must have access to the repo. |
cURL
Python (with requests)
TypeScript/JavaScript (with fetch)
AuthenticationError
if:
cURL