Skip to content

Notes

GET
/notes/find
curl 'https://api.xholic.ai/v1/notes/find' \
-H "Authorization: Bearer $XHOLIC_API_KEY"

Search the account’s notes: what’s coming up, ideas from saved posts, tests, findings and their results. Search by words, status, format or a post. Each note has its id, where it came from and any result. When you write a post from a note, pass its id as noteId to show_drafts, save_draft or schedule_post: the note then closes once the post is scheduled and never writes duplicate drafts.

query

Words to look for in the title or body.

string
<= 200 characters

Words to look for in the title or body.

status

OPEN (coming up, default), DONE, STALE or DROPPED; HISTORY is DONE, STALE and DROPPED together, as the Memory history list shows them.

string
Allowed values: OPEN DONE STALE DROPPED HISTORY

OPEN (coming up, default), DONE, STALE or DROPPED; HISTORY is DONE, STALE and DROPPED together, as the Memory history list shows them.

format

The post format, such as question, one_liner, proof_numbers or list_playbook.

string
Allowed values: relatable_scene one_liner contrast_pair hot_take contrarian_reframe personal_story proof_numbers build_update list_playbook framework question observation trend_reaction ironic_humor advice motivation networking promotion other

The post format, such as question, one_liner, proof_numbers or list_playbook.

post

An X post URL or id the note refers to.

string
<= 2048 characters

An X post URL or id the note refers to.

limit
integer
>= 1 <= 50
cursor
string
<= 200 characters
account

X account to act on, as @handle. Leave it out to use the connection’s default account.

string
>= 1 characters <= 64 characters

X account to act on, as @handle. Leave it out to use the connection’s default account.

note

Optional, on any tool: one or two sentences for Xholic’s shared memory about what the user just decided, asked for or said about themselves or their plans (e.g. “Dropping threads for now; focusing on replies to founders”). Every AI the user connects reads it, so they never repeat themselves. In your words, never other people’s posts. Leave it out when nothing new was said.

string
<= 20000 characters

Optional, on any tool: one or two sentences for Xholic’s shared memory about what the user just decided, asked for or said about themselves or their plans (e.g. “Dropping threads for now; focusing on replies to founders”). Every AI the user connects reads it, so they never repeat themselves. In your words, never other people’s posts. Leave it out when nothing new was said.

Success

Media typeapplication/json
object
ok
required
boolean
summary
required

One or two readable sentences about the result.

string
data
required

The result. Its shape depends on the action.

ids
object
key
additional properties
any
next
Array<string>
creditsCharged
number
dryRun
boolean

Example

{
"ok": true
}

Error

Media typeapplication/json
object
ok
required
boolean
error
required
object
code
required
string
Allowed values: UNAUTHENTICATED INVALID_CREDENTIAL SCOPE_MISSING ROLE_NOT_PERMITTED ACCOUNT_NOT_FOUND SUBSCRIPTION_REQUIRED FEATURE_NOT_INCLUDED APP_ONLY INVALID_INPUT NOT_FOUND CONFLICT CREDITS_CONFIRMATION_REQUIRED INSUFFICIENT_CREDITS RATE_LIMITED IDEMPOTENCY_KEY_REUSED IDEMPOTENCY_IN_PROGRESS X_DATA_LIMIT_REACHED ACCOUNT_ON_HOLD UPSTREAM_UNAVAILABLE MAINTENANCE INCIDENT INTERNAL_ERROR
message
required
string
scope
required
string
Allowed values: account platform
retryAfterSeconds
integer
details

Example

{
"ok": false,
"error": {
"code": "UNAUTHENTICATED",
"scope": "account"
}
}