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: process.env["INTUNED_API_KEY"] ?? "",
});

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

The name you assigned when creating the Project.

authSessionId
string
required

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

Response

200 - application/json

AuthSession details

id
string
required

The unique identifier for the authentication session

Minimum string length: 3
Example:

"auth-session-123"

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