Skip to main content
POST
/
{workspaceId}
/
projects
/
{projectName}
/
auth-sessions
/
create
Python (SDK)
from intuned_client import IntunedClient
import os


with IntunedClient(
    workspace_id="123e4567-e89b-12d3-a456-426614174000",
    api_key=os.getenv("INTUNED_API_KEY", ""),
) as ic_client:

    res = ic_client.project.auth_sessions.create.start(project_name="my-project", parameters={
        "username": "john.doe",
        "password": "password",
    }, id="auth-session-123", proxy="http://proxy.example.com:8080", create_attempts=3, check_attempts=3, save_trace=True)

    # Handle response
    print(res)
{
  "status": "started",
  "operationId": "aabbccddeeffggh"
}

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.

Body

application/json

Create auth session input schema

parameters
object
required

The parameters to be passed to the API.

Example:
{
"param1": "value1",
"param2": 42,
"param3": true
}
id
string

The unique identifier for the authentication session

Minimum length: 3
Example:

"auth-session-123"

proxy
string<uri> | null

Proxy configuration for the job

Example:

"http://username:password@proxy.example.com:8080"

createAttempts
integer
default:3

Number of attempts to create a new auth session if the current one is invalid or expired.

Example:

3

checkAttempts
integer
default:3

Number of attempts to check the validity of the auth session before recreating it.

Example:

3

saveTrace
boolean
default:true

Response

201 - application/json

Create auth session operation started

status
enum<string>
required
Available options:
started
operationId
string
required