List session resources
⚠️
Preview — this feature is being built; the design below is the spec.
GET https://app.syntic.ai/v1/sessions/{session_id}/resourcesReturn 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
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <key>: a private inference key (sk_live_...). See Authentication. |
syntic-beta | Yes, while in preview | agents-2026-11-01. Without it the call fails with 400 beta_required. See Versioning. |
Path parameters
| Parameter | Type | Description |
|---|---|---|
session_id | string | The session id, starting with sesn_. |
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
kind | string | Only one kind. | |
include_removed | boolean | false | Also list resources removed earlier in the session. |
limit | integer | 20 | 1 to 100. |
after_id | string | Next page: the previous page’s last_id. | |
before_id | string | Previous 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"
}| Field | Type | Description |
|---|---|---|
data | array | The objects on this page, newest first. |
has_more | boolean | true when another page exists after this one. |
first_id | string or null | Pass as before_id to go back a page. |
last_id | string or null | Pass 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:
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request_error | beta_required | The syntic-beta header is missing. |
| 404 | not_found_error | session_not_found | No session with this id in the key’s workspace. |
| 401 | authentication_error | invalid_api_key | The key is missing, unknown, revoked or expired. |
| 429 | rate_limit_error | rate_limited | Too many requests; wait for Retry-After. See Rate-limit headers. |
Was this page helpful?