Skip to main content
POST
/
customers
/
external_customer_id
/
{external_customer_id}
/
portal_sessions
Create portal session by external ID
curl --request POST \
  --url https://api.withorb.com/v1/customers/external_customer_id/{external_customer_id}/portal_sessions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "expires_in_minutes": 60
}
'
{
  "id": "<string>",
  "customer_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "expires_at": "2023-11-07T05:31:56Z",
  "url": "<string>"
}

Authorizations

Authorization
string
header
required

API Keys can be issued in the Orb's web application.

Path Parameters

external_customer_id
string | null
required

Body

application/json
expires_in_minutes
integer
default:60

Duration in minutes until the portal session expires. Defaults to 60. Maximum 180.

Required range: 1 <= x <= 180

Response

Created

id
string
required
customer_id
string
required
created_at
string<date-time>
required
expires_at
string<date-time> | null
required
url
string
required