Skip to main content
GET
/
personalities
/
{personality_id}
/
knowledge
List knowledge items
curl --request GET \
  --url https://api.spikelabs.com/v1/personalities/{personality_id}/knowledge \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "kb_abc123",
      "object": "knowledge_item",
      "type": "document",
      "status": "pending",
      "created_at": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "source_url": "<string>",
      "content_preview": "<string>",
      "chunk_count": 123,
      "token_count": 123,
      "error": {
        "code": "<string>",
        "message": "<string>"
      },
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "has_more": true,
  "next_cursor": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Use your secret key (starts with sk_) as a Bearer token.

Path Parameters

personality_id
string
required

Personality ID (starts with personality_)

Query Parameters

type
enum<string>
Available options:
document,
url,
text,
feed
limit
integer
default:20

Number of items to return (1-100)

Required range: 1 <= x <= 100
cursor
string

Pagination cursor from previous response

Response

List of knowledge items

data
object[]
required
has_more
boolean
required
next_cursor
string | null