Okta · Arazzo Workflow

Okta Create and Refresh Session

Version 1.0.0

Create a session from a session token and extend its lifetime.

1 workflow 1 source API 1 provider
View Spec View on GitHub IdentityWorkforce IdentityCustomer IdentityAuthenticationAuthorizationSingle Sign-OnMulti-Factor AuthenticationIdentity GovernancePrivileged AccessAI AgentsCross-App AccessMCPPlatformArazzoWorkflows

Provider

okta

Workflows

create-and-refresh-session
Create a session and refresh it.
Creates a session with a session token, then refreshes the new session to extend its lifetime.
2 steps inputs: oktaApiToken, sessionToken outputs: expiresAt, sessionId
1
createSession
Exchange the supplied session token for a new Okta session.
2
refreshSession
Refresh the newly created session to extend its expiry.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Okta Create and Refresh Session
  summary: Create a session from a session token and extend its lifetime.
  description: >-
    Establishes and prolongs an Okta user session. The workflow exchanges a
    valid session token for a new session and then refreshes that session to
    extend its expiry. The new session id is chained from creation into the
    refresh call. Every step spells out its request inline, including the SSWS
    API token header, so the flow can be read and executed without opening the
    underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: sessionApi
  url: ../openapi/okta-session-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-and-refresh-session
  summary: Create a session and refresh it.
  description: >-
    Creates a session with a session token, then refreshes the new session to
    extend its lifetime.
  inputs:
    type: object
    required:
    - oktaApiToken
    - sessionToken
    properties:
      oktaApiToken:
        type: string
        description: Okta API token used for the SSWS Authorization header.
      sessionToken:
        type: string
        description: A valid one-time session token obtained from authentication.
  steps:
  - stepId: createSession
    description: >-
      Exchange the supplied session token for a new Okta session.
    operationId: createSession
    parameters:
    - name: Authorization
      in: header
      value: SSWS $inputs.oktaApiToken
    requestBody:
      contentType: application/json
      payload:
        sessionToken: $inputs.sessionToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      sessionId: $response.body#/id
      userId: $response.body#/userId
  - stepId: refreshSession
    description: >-
      Refresh the newly created session to extend its expiry.
    operationId: refreshSession
    parameters:
    - name: Authorization
      in: header
      value: SSWS $inputs.oktaApiToken
    - name: sessionId
      in: path
      value: $steps.createSession.outputs.sessionId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      expiresAt: $response.body#/expiresAt
  outputs:
    sessionId: $steps.createSession.outputs.sessionId
    expiresAt: $steps.refreshSession.outputs.expiresAt

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/okta-create-and-refresh-session-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.