agents

List Agent Sources

Changed on

Get the sources associated with an agent.

get/v1/agents/{agent_id}/sources

Request

  • Base URL
    https://app.letta.com
  • URL
    https://app.letta.com/v1/agents/{agent_id}/sources
  • Auth
    HTTP bearer

Path parameters

agent_idstring required

Query parameters

beforestring nullable

Source ID cursor for pagination. Returns sources that come before this source ID in the specified sort order

afterstring nullable

Source ID cursor for pagination. Returns sources that come after this source ID in the specified sort order

limitinteger nullable

Maximum number of sources to return

order'asc' | 'desc'

Sort order for sources by creation time. 'asc' for oldest first, 'desc' for newest first

order_by'created_at'

Field to sort by

Response

Successful Response

namestring required

The name of the source.

descriptionstring nullable

The description of the source.

instructionsstring nullable

Instructions for how to use the source.

metadataobject nullable

Metadata associated with the source.

idstring

The human-friendly ID of the Source

vector_db_provider'native' | 'tpuf' | 'pinecone'

Supported vector database providers for archival memory

created_by_idstring nullable

The id of the user that made this Tool.

last_updated_by_idstring nullable

The id of the user that made this Tool.

created_atstring date-time nullable

The timestamp when the source was created.

updated_atstring date-time nullable

The timestamp when the source was last updated.

Example response

[
  {
    "id": "source-123e4567-e89b-12d3-a456-426614174000"
  }
]

Changes

    • info

      added the new optional query request parameter after

    • info

      added the new optional query request parameter before

    • info

      added the new optional query request parameter limit

    • info

      added the new optional query request parameter order

    • info

      added the new optional query request parameter order_by