Skip to main content
GET
/
{workspaceId}
/
projects
/
{projectName}
/
auth-sessions
/
create
/
{operationId}
/
result
createAuthSessionResult
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.create.result("my-project", "aaaabbbCCCCdddd");

  console.log(result);
}

run();
{
"status": "done",
"authSessionId": "auth-session-123"
}

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.

operationId
string
required

The ID for the requested auth session creation operation. This is obtained from the start request.

Response

200 - application/json

Auth session creation result

  • Done
  • Pending
  • Canceled
  • In Progress
  • Failed
status
enum<string>
required
Available options:
done
authSessionId
string
required

The unique identifier for the authentication session

Minimum length: 3
Example:

"auth-session-123"