Skip to main content
GET
/
{workspaceId}
/
projects
/
{projectName}
/
auth-sessions
/
{authSessionId}
getAuthSession
import { IntunedClient } from "@intuned/client";

const intunedClient = new IntunedClient({
  workspaceId: "123e4567-e89b-12d3-a456-426614174000",
  apiKey: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const result = await intunedClient.project.authSessions.one("my-project", "<id>");

  console.log(result);
}

run();
{
  "id": "auth-session-123",
  "type": "CREDENTIALS",
  "status": "READY"
}

Authorizations

x-api-key
string
header
required

API Key used to authenticate your requests. How to create one.

Path Parameters

workspaceId
string<uuid>
required

Your workspace ID. How to find it?

projectName
string
required

Your project name. It is the name you provide when creating a project.

authSessionId
string
required

Authentication session ID. You can obtain it from the Auth Sessions tab in your project details.

Response

200 - application/json

Authentication session details

id
string
required

The unique identifier for the authentication session

Minimum length: 3
Example:

"auth-session-123"

type
enum<string>
required
Available options:
CREDENTIALS,
RECORDER,
RUNTIME
status
enum<string>
required
Available options:
PENDING,
READY,
EXPIRED