Clerk Session Structure is a JSON Structure definition published by Clerk. It conforms to the https://json-structure.org/schema/v0 meta-schema.
{
"$schema": "https://json-structure.org/schema/v0",
"title": "Clerk Session Structure",
"description": "JSON Structure overview of Clerk Session entity.",
"entity": "Session",
"fields": [
{
"name": "object",
"type": "string",
"description": "String representing the object's type. Objects of the same type share the same value.\n",
"format": null,
"nullable": false
},
{
"name": "id",
"type": "string",
"description": "",
"format": null,
"nullable": false
},
{
"name": "user_id",
"type": "string",
"description": "",
"format": null,
"nullable": false
},
{
"name": "client_id",
"type": "string",
"description": "",
"format": null,
"nullable": false
},
{
"name": "actor",
"type": "object",
"description": "",
"format": null,
"nullable": true
},
{
"name": "status",
"type": "string",
"description": "",
"format": null,
"nullable": false
},
{
"name": "last_active_organization_id",
"type": "string",
"description": "",
"format": null,
"nullable": true
},
{
"name": "last_active_at",
"type": "integer",
"description": "",
"format": null,
"nullable": false
},
{
"name": "latest_activity",
"type": "object",
"description": "",
"format": null,
"nullable": true
},
{
"name": "expire_at",
"type": "integer",
"description": "Unix timestamp of expiration.\n",
"format": "int64",
"nullable": false
},
{
"name": "abandon_at",
"type": "integer",
"description": "Unix timestamp of abandonment.\n",
"format": "int64",
"nullable": false
},
{
"name": "updated_at",
"type": "integer",
"description": "Unix timestamp of last update.\n",
"format": "int64",
"nullable": false
},
{
"name": "created_at",
"type": "integer",
"description": "Unix timestamp of creation.\n",
"format": "int64",
"nullable": false
},
{
"name": "tasks",
"type": "array",
"description": "",
"format": null,
"nullable": true
}
],
"required": [
"object",
"id",
"user_id",
"client_id",
"status",
"last_active_at",
"expire_at",
"abandon_at",
"updated_at",
"created_at"
]
}