curl -X POST https://agent.usedari.com/portals/my-org \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "endpoint_name": "insurance_quote", "start_url": "https://example.com/get-quote", "task": "Fill out the insurance quote form with the provided data", "form_schema": { "type": "object", "properties": { "firstName": {"type": "string"}, "lastName": {"type": "string"}, "email": {"type": "string"}, "dateOfBirth": {"type": "string", "format": "date"} }, "required": ["firstName", "lastName", "email"] }, "output_schema": { "type": "object", "properties": { "quoteId": {"type": "string"}, "premium": {"type": "number"} } } }'
{ "id": "550e8400-e29b-41d4-a716-446655440000", "org_id": "my-org", "endpoint_name": "insurance_quote", "start_url": "https://example.com/get-quote", "task": "Fill out the insurance quote form with the provided data", "form_schema": { "type": "object", "properties": { "firstName": {"type": "string"}, "lastName": {"type": "string"}, "email": {"type": "string"}, "dateOfBirth": {"type": "string", "format": "date"} }, "required": ["firstName", "lastName", "email"] }, "output_schema": { "type": "object", "properties": { "quoteId": {"type": "string"}, "premium": {"type": "number"} } }, "profile_id": null, "humanized_urls": null, "webhook_url": null, "skills": [], "created_at": "2025-01-15T10:30:00Z", "updated_at": "2025-01-15T10:30:00Z" }
Create a new portal for an organization
endpoint_name
application/json
{ "detail": "Portal with endpoint_name 'insurance_quote' already exists" }