Questions or issues? Contact us at api-support@manus.ai.
Create an API key
Generate a key
Click Create API Key and give it a descriptive name (e.g. “production”, “dev-testing”).
Copy and store securely
Copy the key immediately — it will only be shown once. Store it in a secure location such as an environment variable or secrets manager.
Keep your API keys secure and never share them publicly. Each key provides full access to your Manus account. If a key is compromised, revoke it immediately from the settings page.
Use the API key
Include the key in the x-manus-api-key header with every request:
curl -X POST https://api.manus.ai/v2/task.create \
-H "Content-Type: application/json" \
-H "x-manus-api-key: $MANUS_API_KEY" \
-d '{
"message": {
"content": "hello"
}
}'
import os
import requests
response = requests.post(
"https://api.manus.ai/v2/task.create",
headers={
"Content-Type": "application/json",
"x-manus-api-key": os.environ["MANUS_API_KEY"],
},
json={
"message": {
"content": "hello"
}
},
)
print(response.json())
const response = await fetch("https://api.manus.ai/v2/task.create", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-manus-api-key": process.env.MANUS_API_KEY!,
},
body: JSON.stringify({
message: {
content: "hello",
},
}),
});
const data = await response.json();
console.log(data);
Authentication errors
If the key is missing or invalid, the API returns:
{
"ok": false,
"request_id": "req_abc123",
"error": {
"code": "permission_denied",
"message": "Invalid or missing API key"
}
}