Remove a session resource

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

Unmount a resource from the session. The underlying file, repository or memory store is not deleted. The agent sees a resource.removed event on its next turn. Writes made to a writable repository mount are lost unless the agent pushed them.

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_.
resource_idstringThe resource id, starting with sres_.

Response

200 OK, Content-Type: application/json

{
  "id": "sres_01JCB2E4G6J8L0N2Q4S6",
  "type": "session_resource",
  "status": "removed",
  "removed_at": "2026-11-05T11:00:00Z"
}

Examples

curl -sS -X DELETE "https://app.syntic.ai/v1/sessions/sesn_01JC7M2K4P6R8T0V2X4Z/resources/sres_01JCB1D3F5H7K9M1P3R5" \
  -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.
409conflict_errorsession_runningThe agent is mid-turn; wait for status: idle or interrupt first.
404not_found_errorresource_not_foundNo resource with this id on the session.
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?