List session resources

⚠️
Preview — this feature is being built; the design below is the spec.
GET https://app.syntic.ai/v1/sessions/{session_id}/resources

Return the files, repositories and memory stores mounted into a session, including ones that failed to mount. Removed resources are left out unless include_removed=true.

For how this fits into a full workflow, see Session resources.

Headers

HeaderRequiredValue
AuthorizationYesBearer <key>: a private inference key (sk_live_...). See Authentication.
syntic-betaYes, while in previewagents-2026-11-01. Without it the call fails with 400 beta_required. See Versioning.

Path parameters

ParameterTypeDescription
session_idstringThe session id, starting with sesn_.

Query parameters

ParameterTypeDefaultDescription
kindstringOnly one kind.
include_removedbooleanfalseAlso list resources removed earlier in the session.
limitinteger201 to 100.
after_idstringNext page: the previous page’s last_id.
before_idstringPrevious page: the previous page’s first_id.

Response

200 OK, Content-Type: application/json

{
  "data": [
    {
      "id": "sres_01JCB2E4G6J8L0N2Q4S6",
      "type": "session_resource",
      "session_id": "sesn_01JC7M2K4P6R8T0V2X4Z",
      "kind": "git_repository",
      "git": {
        "url": "https://git.example.com/acme/billing-service.git",
        "ref": "main",
        "commit": "4f1c2a9",
        "vault_secret": "git-read-token"
      },
      "mount_path": "/workspace/repo",
      "read_only": false,
      "status": "mounted",
      "error": null,
      "created_at": "2026-11-05T10:01:10Z",
      "updated_at": "2026-11-05T10:01:31Z"
    }
  ],
  "has_more": false,
  "first_id": "sres_01JCB2E4G6J8L0N2Q4S6",
  "last_id": "sres_01JCB2E4G6J8L0N2Q4S6"
}
FieldTypeDescription
dataarrayThe objects on this page, newest first.
has_morebooleantrue when another page exists after this one.
first_idstring or nullPass as before_id to go back a page.
last_idstring or nullPass as after_id to get the next page.

Examples

curl -sS "https://app.syntic.ai/v1/sessions/sesn_01JC7M2K4P6R8T0V2X4Z/resources?kind=git_repository" \
  -H "Authorization: Bearer $SYNTIC_API_KEY" \
  -H "syntic-beta: agents-2026-11-01"

Errors

Errors use the error envelope and carry a request_id. Codes specific to this operation:

StatustypecodeWhen
400invalid_request_errorbeta_requiredThe syntic-beta header is missing.
404not_found_errorsession_not_foundNo session with this id in the key’s workspace.
401authentication_errorinvalid_api_keyThe key is missing, unknown, revoked or expired.
429rate_limit_errorrate_limitedToo many requests; wait for Retry-After. See Rate-limit headers.
Was this page helpful?