Skip to main content
POST
/
{workspaceId}
/
projects
/
{projectName}
/
auth-sessions
/
{authSessionId}
/
validate
/
start
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.validate.start(project_name="my-project", auth_session_id="<id>", auto_recreate=True, check_attempts=3, create_attempts=3, proxy="http://proxy.example.com:8080", request_timeout=600)

    # Handle response
    print(res)
{
  "status": "pending",
  "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.

authSessionId
string
required

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

Body

application/json

Validate auth session input schema

autoRecreate
boolean
default:true

If true, the auth session will be automatically recreated if the check fails.

Example:

true

checkAttempts
integer
default:3

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

Example:

3

createAttempts
integer
default:3

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

Example:

3

proxy
string<uri> | null

Proxy URL to be used for the API call. This is optional and can be used to route the API call through a proxy server.

Example:

"http://username:password@domain:port"

requestTimeout
integer
default:600

Timeout for the API request in seconds. Default is 10 minutes (600 seconds).

Example:

600

Response

201 - application/json

Validate auth session operation started

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