Trillet AI logo

Create Omni Flow Agent

Create a new agent for a workspace.

POSThttps://api.trillet.ai/v1/api/omni-flow-agents

Headers

x-api-keystringrequired

API key used for authenticating requests to the API.

x-workspace-idstringrequired

Workspace identifier for the API.

Request Body

namestringrequired

Name of the agent being created.

llmModelstringrequireddefault: gpt-4o-mini

Language Model to be used by the agent to generate responses. (e.g. gpt-4o-mini, gpt-4o, gpt-4o-enterprise)

settingsobject

Settings related to the agent.

Response Fields

workspaceIdstring

Workspace ID associated with the agent.

userIdstring

User ID of the agent creator.

namestring

Name of the agent.

llmModelstring

Language model used by the agent (e.g., gpt-4o-mini).

phoneNumberIdstring

Phone number ID, if assigned to the agent.

statusstring

Current status of the agent (e.g., ready).

createdAtstring

Timestamp when the agent was created.

updatedAtstring

Timestamp when the agent was last updated.

{  
  "workspaceId": "01a0sda156scx5f8",  
  "userId": "01a0sda156scx5f8",  
  "name": "ExampleOmniFlowAgent",  
  "llmModel": "gpt-4o-mini",  
  "phoneNumberId": null,  
  "status": "ready",  
  "createdAt": "2025-01-19T03:18:22.604Z",  
  "updatedAt": "2025-01-19T03:18:22.604Z"  
}