GET
/
rest
/
logs
curl --request GET \
  --url https://copilotz.com/rest/logs \
  --header 'Authorization: Bearer <token>'
{
  "name": "functionCall",
  "input": "User requested weather update.",
  "output": "Weather update sent to user.",
  "status": "completed",
  "tags": [
    "weather",
    "update"
  ],
  "duration": 1500,
  "createdAt": "2024-09-17T16:52:28.684Z",
  "updatedAt": "2024-09-17T16:52:28.684Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

input.0.thread.extId
integer
name
string

Response

200 - application/json
Successful response

Response containing log details for a specific thread.

input
object
required

Input received for the log entry.

Example:

"User requested weather update."

output
object
required

Output generated for the log entry.

Example:

"Weather update sent to user."

status
string
required

Current status of the log entry.

Example:

"completed"

tags
string[]
required

Tags associated with the log entry.

Example:
["weather", "update"]
duration
number
required

Duration taken to process the log entry in milliseconds.

Example:

1500

createdAt
string
required

Timestamp when the log entry was created.

Example:

"2024-09-17T16:52:28.684Z"

updatedAt
string
required

Timestamp when the log entry was last updated.

Example:

"2024-09-17T16:52:28.684Z"

name
string

Name of the executed funciton

Example:

"functionCall"