List turns
curl --request GET \
--url https://api.staging.bma.beeos.ai/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/turns \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.staging.bma.beeos.ai/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/turns"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.staging.bma.beeos.ai/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/turns', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.staging.bma.beeos.ai/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/turns"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"id": "<string>",
"agent_id": "<string>",
"turn_sequence": 4503599627370496,
"event_count": 4503599627370496,
"opening_events": [
{
"id": "<string>",
"org_id": "<string>",
"project_id": "<string>",
"agent_id": "<string>",
"turn_id": "<string>",
"turn_sequence": 4503599627370496,
"is_opening_event": true,
"sequence": 4503599627370496,
"event_kind": "agent_input",
"agent_input_id": "<string>",
"input_kind": "content",
"content_blocks": [
{
"type": "text",
"text": "<string>",
"metadata": {}
}
],
"created_at": "2023-11-07T05:31:56Z",
"actor_id": "<string>",
"input_idempotency_key": "<string>",
"control_type": "cancel_current",
"interaction_id": "<string>",
"agent_config_id": "<string>"
}
],
"started_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"latest_event": {
"id": "<string>",
"org_id": "<string>",
"project_id": "<string>",
"agent_id": "<string>",
"turn_id": "<string>",
"turn_sequence": 4503599627370496,
"is_opening_event": true,
"sequence": 4503599627370496,
"event_kind": "agent_input",
"agent_input_id": "<string>",
"input_kind": "content",
"content_blocks": [
{
"type": "text",
"text": "<string>",
"metadata": {}
}
],
"created_at": "2023-11-07T05:31:56Z",
"actor_id": "<string>",
"input_idempotency_key": "<string>",
"control_type": "cancel_current",
"interaction_id": "<string>",
"agent_config_id": "<string>"
},
"latest_semantic_event": {
"id": "<string>",
"org_id": "<string>",
"project_id": "<string>",
"agent_id": "<string>",
"turn_id": "<string>",
"turn_sequence": 4503599627370496,
"is_opening_event": true,
"sequence": 4503599627370496,
"event_kind": "agent_input",
"agent_input_id": "<string>",
"input_kind": "content",
"content_blocks": [
{
"type": "text",
"text": "<string>",
"metadata": {}
}
],
"created_at": "2023-11-07T05:31:56Z",
"actor_id": "<string>",
"input_idempotency_key": "<string>",
"control_type": "cancel_current",
"interaction_id": "<string>",
"agent_config_id": "<string>"
}
}
],
"next_before_turn_sequence": 4503599627370495
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Events
List turns
Returns turns newest first. Use the returned next_before_turn_sequence as before_turn_sequence to fetch older turns.
GET
/
orgs
/
{orgID}
/
projects
/
{projectID}
/
agents
/
{agentID}
/
turns
List turns
curl --request GET \
--url https://api.staging.bma.beeos.ai/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/turns \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.staging.bma.beeos.ai/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/turns"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.staging.bma.beeos.ai/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/turns', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.staging.bma.beeos.ai/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/turns"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"id": "<string>",
"agent_id": "<string>",
"turn_sequence": 4503599627370496,
"event_count": 4503599627370496,
"opening_events": [
{
"id": "<string>",
"org_id": "<string>",
"project_id": "<string>",
"agent_id": "<string>",
"turn_id": "<string>",
"turn_sequence": 4503599627370496,
"is_opening_event": true,
"sequence": 4503599627370496,
"event_kind": "agent_input",
"agent_input_id": "<string>",
"input_kind": "content",
"content_blocks": [
{
"type": "text",
"text": "<string>",
"metadata": {}
}
],
"created_at": "2023-11-07T05:31:56Z",
"actor_id": "<string>",
"input_idempotency_key": "<string>",
"control_type": "cancel_current",
"interaction_id": "<string>",
"agent_config_id": "<string>"
}
],
"started_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"latest_event": {
"id": "<string>",
"org_id": "<string>",
"project_id": "<string>",
"agent_id": "<string>",
"turn_id": "<string>",
"turn_sequence": 4503599627370496,
"is_opening_event": true,
"sequence": 4503599627370496,
"event_kind": "agent_input",
"agent_input_id": "<string>",
"input_kind": "content",
"content_blocks": [
{
"type": "text",
"text": "<string>",
"metadata": {}
}
],
"created_at": "2023-11-07T05:31:56Z",
"actor_id": "<string>",
"input_idempotency_key": "<string>",
"control_type": "cancel_current",
"interaction_id": "<string>",
"agent_config_id": "<string>"
},
"latest_semantic_event": {
"id": "<string>",
"org_id": "<string>",
"project_id": "<string>",
"agent_id": "<string>",
"turn_id": "<string>",
"turn_sequence": 4503599627370496,
"is_opening_event": true,
"sequence": 4503599627370496,
"event_kind": "agent_input",
"agent_input_id": "<string>",
"input_kind": "content",
"content_blocks": [
{
"type": "text",
"text": "<string>",
"metadata": {}
}
],
"created_at": "2023-11-07T05:31:56Z",
"actor_id": "<string>",
"input_idempotency_key": "<string>",
"control_type": "cancel_current",
"interaction_id": "<string>",
"agent_config_id": "<string>"
}
}
],
"next_before_turn_sequence": 4503599627370495
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
bearerAuthbrowserSessionCookie
An opaque BMA personal or organization bearer token.
Path Parameters
Organization ID (org_...).
Pattern:
^org_[a-z2-7]{26}$Project ID (proj_...).
Pattern:
^proj_[a-z2-7]{26}$Agent ID (agt_...).
Pattern:
^agt_[a-z2-7]{26}$Query Parameters
Agent session ID (ses_...). Omit to use the agent's default session.
Pattern:
^ses_[a-z2-7]{26}$Exclusive turn sequence boundary. Omit or pass 0 for the newest turns.
Required range:
x >= 0Maximum number of turns to return.
Required range:
1 <= x <= 100