Sessions

Get one session. A 404 means the session is gone, or belongs to another workspace; either way a client holding its id should stop using it.

get/v2/workspaces/{workspace_id}/sessions/{session_id}

Request

  • Base URL: https://api.app.layer.ai/api
  • URL: https://api.app.layer.ai/api/v2/workspaces/{workspace_id}/sessions/{session_id}
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://auth.app.layer.ai/authorize, token URL https://auth.app.layer.ai/oauth/token)
    • OAuth 2 (client credentials, token URL https://api.app.layer.ai/api/oauth/token, scopes: sessions:read)

Path parameters

workspace_idstring uuid required

Id of the workspace that owns the resource.

session_idstring uuid required

Id of the session.

Response

Successful Response

session_idstring uuid required

The session's unique identifier.

namestring required

The session's display name.

project_idstring uuid nullable

The project the session is filed under, if any.

created_atstring date-time required

When the session was created.

last_interacted_atstring date-time nullable

When anyone last worked in the session, or null if nobody has yet.

Changes

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      the endpoint scheme security serviceAccount was added to the API

    • info

      the security scope sessions:read was removed from the endpoint's security scheme oauth2