Resources
Add Session Resource
Add Session Resource through the OMA API.
POST
Add Session Resource
Every request requires
?beta=true.Authorizations
OMA workspace API key.
Path Parameters
Path parameter session_id
Query Parameters
Selects the beta API contract for this endpoint. Must be true.
Available options:
true Body
application/json
Request parameters for adding a resource to a session.
Available options:
file Example:
"file"
ID of a previously uploaded file.
Required string length:
1 - 128Example:
"file_011CNha8iCJcU1wXNR6q4V8w"
Mount path in the container. Defaults to /mnt/session/uploads/<file_id>.
Required string length:
1 - 4096Example:
"/uploads/receipt.pdf"
Response
Successful response (OK)
The added session resource.
Available options:
file Example:
"file"
Example:
"sesrsc_011CZkZBJq5dWxk9fVLNcPht"
Example:
"file_011CNha8iCJcU1wXNR6q4V8w"
Example:
"/uploads/receipt.pdf"
A timestamp in RFC 3339 format
Example:
"2026-03-15T10:00:00Z"
A timestamp in RFC 3339 format
Example:
"2026-03-15T10:00:00Z"