Skip to content

Get current session

GET
/v2/portal/auth/session
curl --request GET \
--url https://api.sipstack.com/v2/portal/auth/session \
--header 'Authorization: Bearer <token>'

Returns the authenticated user with organization context, permissions, and subscribed products.

Current session.

Media type application/json
object
success
boolean
data
object
user

User identity, role, organization, permissions, and product flags.

object
session
object
id
string
Example generated
{
"success": true,
"data": {
"user": {},
"session": {
"id": "example"
}
}
}

Not authenticated, token expired, or session invalid.

Media type application/json

Central error-handler shape used by most portal endpoints.

object
statusCode
integer
message
string
code

Machine-readable code, present when one applies. See Error Codes.

string
Example
{
"statusCode": 401,
"message": "Token expired",
"code": "TOKEN_EXPIRED"
}