Session Management
Session lifecycle management
Public endpoint. Requires integration API key in api-key
header.
Server slug based on regions:
api
- for US region based orgs
in
- for IN region based orgs
eu
- for EU region based orgs
api
Possible values: API version (e.g., v1)
v1
Possible values: Sprinto-issued integration identifier.
Caller-side correlation id
Session created
Unauthorized
Too Many Requests
POST /{version}/integrations/{integration_id}/sessions HTTP/1.1
Host: {regionurl}
api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"client_reference_id": "text"
}
{
"id": "text",
"integration_id": "text",
"state": "active",
"created_at": "2025-09-17T12:13:31.416Z",
"updated_at": "2025-09-17T12:13:31.416Z",
"expires_at": "2025-09-17T12:13:31.416Z",
"inactivity_timeout_seconds": 3600,
"accepted_records_total": 0,
"accepted_records_by_entity": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"last_error": "text"
}
Returns state and counts of accepted rows so far (by entity and total).
Server slug based on regions:
api
- for US region based orgs
in
- for IN region based orgs
eu
- for EU region based orgs
api
Possible values: API version (e.g., v1)
v1
Possible values: Sprinto-issued integration identifier.
Session identifier returned by the session creation endpoint.
Session status
Unauthorized
Session not found
GET /{version}/integrations/{integration_id}/sessions/{session_id} HTTP/1.1
Host: {regionurl}
api-key: YOUR_API_KEY
Accept: */*
{
"id": "text",
"integration_id": "text",
"state": "active",
"created_at": "2025-09-17T12:13:31.416Z",
"updated_at": "2025-09-17T12:13:31.416Z",
"expires_at": "2025-09-17T12:13:31.416Z",
"inactivity_timeout_seconds": 3600,
"accepted_records_total": 0,
"accepted_records_by_entity": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"last_error": "text",
"accepted_batches": 0,
"retry_count": 0
}
Send apply
to apply staged data or discard
to discard. Processing retries once on Sprinto side.
Server slug based on regions:
api
- for US region based orgs
in
- for IN region based orgs
eu
- for EU region based orgs
api
Possible values: API version (e.g., v1)
v1
Possible values: Sprinto-issued integration identifier.
Session identifier returned by the session creation endpoint.
apply
Possible values: Transition accepted; processing started (async)
Unauthorized
Session not found
Session not in a closable state
POST /{version}/integrations/{integration_id}/sessions/{session_id}/close HTTP/1.1
Host: {regionurl}
api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"status": "apply"
}
{
"id": "text",
"integration_id": "text",
"state": "active",
"created_at": "2025-09-17T12:13:31.416Z",
"updated_at": "2025-09-17T12:13:31.416Z",
"expires_at": "2025-09-17T12:13:31.416Z",
"inactivity_timeout_seconds": 3600,
"accepted_records_total": 0,
"accepted_records_by_entity": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"last_error": "text",
"accepted_batches": 0,
"retry_count": 0
}