Skip to content

Retrieve an identity source session

Request

OAuth 2.0 scope:
  • okta.identitySources.read

Retrieves an identity source session for a given identity source ID and session ID

Path
identitySourceIdstringrequired

The ID of the identity source for which the session is created

Example:0oa3l6l6WK6h0R0QW0g4
sessionIdstringrequired

The ID of the identity source session

Example:aps1qqonvr2SZv6o70h8
curl -i -X GET \
  https://subdomain.okta.com/api/v1/identity-sources/0oa3l6l6WK6h0R0QW0g4/sessions/aps1qqonvr2SZv6o70h8

Responses

Success

Bodyapplication/json
createdstring, (date-time)read-only

The timestamp when the identity source session was created

idstringread-only

The ID of the identity source session

identitySourceIdstringread-only

The ID of the custom identity source for which the session is created

importTypestringread-only

The type of import. All imports are INCREMENTAL imports.

lastUpdatedstring, (date-time)read-only

The timestamp when the identity source session was created

statusstring(IdentitySourceSessionStatus)

The current status of the identity source session

Enum ValueDescription
CREATED

This is a new identity source session that hasn't been processed. You can upload bulk data in this stage.

IN_PROGRESS

The bulk data is being uploaded to Okta.

TRIGGERED

Okta is processing the import data in this session. You can't load bulk data in this stage.

COMPLETED

The bulk data was processed and imported into Okta.

CLOSED

The identity source session was canceled and isn't available for further activity.

EXPIRED

This identity source session had the CREATED status and timed-out after 24 hours of inactivity.

ERROR

The processing of import data in the session encountered an error. You need to open a new session to upload the data again.

Response
{ "id": "aps1qqonvr2SZv6o70h8", "identitySourceId": "0oa3l6l6WK6h0R0QW0g4", "status": "CREATED", "importType": "INCREMENTAL", "created": "2022-04-04T15:56:05.000Z", "lastUpdated": "2022-05-05T16:15:44.000Z" }