sessions

Add a file to a running session [write]

Changed on

Files only — repositories and memory stores can only be attached at session create. The file is copied read-only to /workspace<mount_path> before the session's next turn; mount_path follows the create rules (rooted under /workspace, no escape, no overlap with another resource). 400 too_many_resources past 500 per session; 400 session_archived on an archived session.

post/sessions/{id}/resources

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/sessions/{id}/resources
  • Auth
    HTTP bearer

Path parameters

idstring required

The session id (sess_…)

Request body

OR
OR

Response

OK

OR
OR

Changes