GET
/
v1
/
teams
/
{teamId}
/
personas
/
{personaId}
/
life-events
TypeScript client
import { OctosparkClient } from '@octospark/sdk'

const client = new OctosparkClient({
  token: process.env.OCTOSPARK_TOKEN
})

const response = await client.personas.listPersonaLifeEvents({
  teamId: process.env.OCTOSPARK_TEAM_ID ?? "teamId",
  personaId: process.env.OCTOSPARK_PERSONA_ID ?? "personaId",
})
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "personaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "category": "<string>",
    "title": "<string>",
    "story": "<string>",
    "occurredAt": "<string>",
    "endedAt": "<string>",
    "location": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

teamId
string
required

Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.

personaId
string
required

Persona id (UUID), returned by list or create persona.

Response

Success

id
string<uuid>
required

a Universally Unique Identifier

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
personaId
string<uuid>
required

a Universally Unique Identifier

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
category
string
required
title
string
required
story
string
required
occurredAt
string
required
endedAt
string | null
required
location
string | null
required
createdAt
string
required
updatedAt
string
required