Skip to content
Letta Platform Letta Platform Letta Docs
Sign up

Environments

List Environment Connections
GET/v1/environments
Get Environment Connection
GET/v1/environments/{deviceId}
Send Message to Environment
POST/v1/environments/{connectionId}/messages
ModelsExpand Collapse
EnvironmentListResponse object { connections, hasNextPage }
connections: array of object { id, connectedAt, connectionId, 11 more }
id: string
connectedAt: number
connectionId: string
connectionName: string
deviceId: string
firstSeenAt: number
lastHeartbeat: number
lastSeenAt: number
organizationId: string
podId: string
apiKeyOwner: optional string
currentMode: optional "default" or "standard" or "acceptEdits" or 2 more
One of the following:
"default"
"standard"
"acceptEdits"
"bypassPermissions"
"unrestricted"
metadata: optional object { gitBranch, lettaCodeVersion, nodeVersion, 4 more }
gitBranch: optional string
lettaCodeVersion: optional string
nodeVersion: optional string
os: optional string
self_update: optional object { supported, writable, install_path, 2 more }
supported: boolean
writable: boolean
install_path: optional string
manual_command: optional string
reason: optional string
supported_commands: optional array of string
workingDirectory: optional string
userId: optional string
hasNextPage: boolean
EnvironmentRetrieveResponse object { id, connectedAt, connectionId, 11 more }
id: string
connectedAt: number
connectionId: string
connectionName: string
deviceId: string
firstSeenAt: number
lastHeartbeat: number
lastSeenAt: number
organizationId: string
podId: string
apiKeyOwner: optional string
currentMode: optional "default" or "standard" or "acceptEdits" or 2 more
One of the following:
"default"
"standard"
"acceptEdits"
"bypassPermissions"
"unrestricted"
metadata: optional object { gitBranch, lettaCodeVersion, nodeVersion, 4 more }
gitBranch: optional string
lettaCodeVersion: optional string
nodeVersion: optional string
os: optional string
self_update: optional object { supported, writable, install_path, 2 more }
supported: boolean
writable: boolean
install_path: optional string
manual_command: optional string
reason: optional string
supported_commands: optional array of string
workingDirectory: optional string
userId: optional string
EnvironmentSendMessageResponse object { message, success }
message: string
success: boolean