Clerk · Schema
Clerk Session
Clerk Session object.
AuthenticationAuthorizationB2B SaaSCIAMIdentity ManagementMFAOAuthOpenID ConnectOrganizationsPasskeysSAMLSecuritySessionsSSOUser Management
Properties
| Name | Type | Description |
|---|---|---|
| object | string | String representing the object's type. Objects of the same type share the same value. |
| id | string | |
| user_id | string | |
| client_id | string | |
| actor | object | |
| status | string | |
| last_active_organization_id | string | |
| last_active_at | integer | |
| latest_activity | object | |
| expire_at | integer | Unix timestamp of expiration. |
| abandon_at | integer | Unix timestamp of abandonment. |
| updated_at | integer | Unix timestamp of last update. |
| created_at | integer | Unix timestamp of creation. |
| tasks | array |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/clerk-com/main/json-schema/clerk-session-schema.json",
"title": "Clerk Session",
"description": "Clerk Session object.",
"type": "object",
"additionalProperties": false,
"properties": {
"object": {
"type": "string",
"description": "String representing the object's type. Objects of the same type share the same value.\n",
"enum": [
"session"
]
},
"id": {
"type": "string"
},
"user_id": {
"type": "string"
},
"client_id": {
"type": "string"
},
"actor": {
"type": "object",
"nullable": true
},
"status": {
"type": "string",
"enum": [
"active",
"revoked",
"ended",
"expired",
"removed",
"abandoned",
"replaced",
"pending"
]
},
"last_active_organization_id": {
"type": "string",
"nullable": true
},
"last_active_at": {
"type": "integer"
},
"latest_activity": {
"type": "object",
"nullable": true,
"properties": {
"object": {
"type": "string"
},
"id": {
"type": "string"
},
"device_type": {
"type": "string"
},
"is_mobile": {
"type": "boolean"
},
"browser_name": {
"type": "string"
},
"browser_version": {
"type": "string"
},
"ip_address": {
"type": "string"
},
"city": {
"type": "string"
},
"country": {
"type": "string"
}
},
"required": [
"id",
"object",
"is_mobile"
]
},
"expire_at": {
"type": "integer",
"format": "int64",
"description": "Unix timestamp of expiration.\n"
},
"abandon_at": {
"type": "integer",
"format": "int64",
"description": "Unix timestamp of abandonment.\n"
},
"updated_at": {
"type": "integer",
"format": "int64",
"description": "Unix timestamp of last update.\n"
},
"created_at": {
"type": "integer",
"format": "int64",
"description": "Unix timestamp of creation.\n"
},
"tasks": {
"type": "array",
"nullable": true,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
}
},
"required": [
"key"
]
}
}
},
"required": [
"object",
"id",
"user_id",
"client_id",
"status",
"last_active_at",
"expire_at",
"abandon_at",
"updated_at",
"created_at"
]
}