Code Interpreter
List active sessions
Lists all your currently active sessions.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Response Body
application/json
curl -X GET "https://example.com/tci/sessions"{ "errors": [ "string" ], "data": { "sessions": [ { "execute_count": 0, "expires_at": "2019-08-24T14:15:22Z", "id": "string", "last_execute_at": "2019-08-24T14:15:22Z", "started_at": "2019-08-24T14:15:22Z" } ] }}Execute code POST
Executes the given code snippet and returns the output. Without a session_id, a new session is created to run the code. If you pass a valid session_id, the code runs in that session. This is useful for running multiple code snippets in the same environment, because dependencies and similar things are persisted between calls to the same session.
List batch jobs GET
List all batch jobs for the authenticated user