API reference
Tides
Live collaboration: shared rooms where people and agents edit together, presence, members, activity and saved versions.
- Operations
- 26
- Base path
https://os.one.ml/api/v1/tides- Scopes
tides:readtides:write- API keys
- —
- SDK
genesis.call('tides_activity', …)· helpers undergenesis.tides- MCP
- 25 tools; the other 1 through
genesis_call
Operations
Activity
The activity log across rooms (a project, a subject or the whole org)
GET/v1/tides/activity
Scope tides:read. The same log as tides_room_activity over every room the caller can read, filtered by project or subject, newest first, with room_name on each entry and the 24-hour actors summary. This is what a dashboard shows for a project: what people and agents did, where, and on whose behalf.
Parameters
project_idquery · stringsubject_typequery · "document" | "project" | "org" | "thread" | "task" | "meeting" | "other"subject_idquery · stringbeforequery · string (date-time)The
next_beforeof the previous pagelimitquery · integertypequery · "op" | "event"
Responses
- 200A page of activity
Response fields
dataobject[]requireddata[].[].type"op" | "event"data[].[].room_idstringdata[].[].room_namestring | nulldata[].[].kindstringop: update, edit, restore; event: room.created, room.updated, room.trashed, room.restored, member.granted, member.revoked, snapshot.created
data[].[].seqintegerdata[].[].cursorstringdata[].[].actor_kind"human" | "agent" | "key"data[].[].actor_idstringdata[].[].actor_didstring | nulldata[].[].on_behalf_ofstring | nulldata[].[].viastringdata[].[].bytesintegerdata[].[].detailobjectdata[].[].created_atstring (date-time)next_beforestring | nullactorsobject[]actors[].[].actor_kindstringactors[].[].actor_idstringactors[].[].actor_didstring | nullactors[].[].on_behalf_ofstring | nullactors[].[].ops_24hintegeractors[].[].last_atstring (date-time)
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 422invalid, unknown_root, invalid_content, invalid_update or out_of_range
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/tides/activity" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_activity'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_activity",
"arguments": {}
}
}A room's activity log, newest first (people and agents)
GET/v1/tides/rooms/{room}/activity
Scope tides:read. Ops (who, on whose behalf, how, how many bytes; never the bytes) merged with room events (room.created, room.updated, room.trashed, room.restored, member.granted, member.revoked, snapshot.created), plus actors: who was active in the last 24 hours with their op counts. Page with next_before.
Parameters
roompath · stringrequiredbeforequery · string (date-time)The
next_beforeof the previous pagelimitquery · integertypequery · "op" | "event"
Responses
- 200A page of activity
Response fields
dataobject[]requireddata[].[].type"op" | "event"data[].[].room_idstringdata[].[].room_namestring | nulldata[].[].kindstringop: update, edit, restore; event: room.created, room.updated, room.trashed, room.restored, member.granted, member.revoked, snapshot.created
data[].[].seqintegerdata[].[].cursorstringdata[].[].actor_kind"human" | "agent" | "key"data[].[].actor_idstringdata[].[].actor_didstring | nulldata[].[].on_behalf_ofstring | nulldata[].[].viastringdata[].[].bytesintegerdata[].[].detailobjectdata[].[].created_atstring (date-time)next_beforestring | nullactorsobject[]actors[].[].actor_kindstringactors[].[].actor_idstringactors[].[].actor_didstring | nullactors[].[].on_behalf_ofstring | nullactors[].[].ops_24hintegeractors[].[].last_atstring (date-time)
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 422invalid, unknown_root, invalid_content, invalid_update or out_of_range
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/tides/rooms/$ROOM/activity" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_room_activity', {
room: '<room>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_room_activity",
"arguments": {
"room": "<room>"
}
}
}Presence
Who is live across rooms (a project, a subject or the whole org)
GET/v1/tides/presence
Scope tides:read. Live presence in each room the caller can read (and may see presence in), grouped by room, plus actors: each person or agent once, with the rooms they are in.
Parameters
project_idquery · stringsubject_typequery · "document" | "project" | "org" | "thread" | "task" | "meeting" | "other"subject_idquery · string
Responses
- 200Live presence by room
Response fields
dataobject[]data[].[].room_idstringdata[].[].namestringdata[].[].presenceobject[]data[].[].presence[].[].conn_idstringdata[].[].presence[].[].actor_kind"human" | "agent" | "key"data[].[].presence[].[].actor_idstringdata[].[].presence[].[].actor_didstring | nulldata[].[].presence[].[].on_behalf_ofstring | nulldata[].[].presence[].[].display_namestring | nulldata[].[].presence[].[].stateobjectdata[].[].presence[].[].expires_atstring (date-time)actorsobject[]actors[].[].actor_kind"human" | "agent" | "key"actors[].[].actor_idstringactors[].[].actor_didstring | nullactors[].[].on_behalf_ofstring | nullactors[].[].roomsstring[]
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 422invalid, unknown_root, invalid_content, invalid_update or out_of_range
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/tides/presence" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_presence_across'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_presence_across",
"arguments": {}
}
}Who is in a room now
GET/v1/tides/rooms/{room}/presence
Scope tides:read and the room's presence perm. One entry per live lease, people and agents alike.
Parameters
roompath · stringrequired
Responses
- 200Live presence
Response fields
dataobject[]requireddata[].[].conn_idstringdata[].[].actor_kind"human" | "agent" | "key"data[].[].actor_idstringdata[].[].actor_didstring | nulldata[].[].on_behalf_ofstring | nulldata[].[].display_namestring | nulldata[].[].stateobjectdata[].[].expires_atstring (date-time)
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/tides/rooms/$ROOM/presence" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_presence_list', {
room: '<room>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_presence_list",
"arguments": {
"room": "<room>"
}
}
}Set the caller's presence (a heartbeat with state)
POST/v1/tides/rooms/{room}/presence
Scope tides:write and the room's presence perm. Up to 2 KB of state (status, cursor, selection, focus) for ttl seconds (up to 300). With the conn_id from tides_join each connection has its own lease; without it, one lease per actor. Open streams get the new list.
Parameters
roompath · stringrequiredasquery · "one"oneshows a person session's writes as One's (actoragent one:<person>on behalf of the person); person sessions only
Request body application/json
stateobjecte.g. {"status": "editing", "cursor": 42, "focus": "shapes/s1"}
ttlintegermin 1 · max 300 · default
30conn_idstringpattern
^tc_[a-z2-7]{26}$display_namestringmax length 80
Responses
- 200The lease
Response fields
conn_idstringactor_kind"human" | "agent" | "key"actor_idstringactor_didstring | nullon_behalf_ofstring | nulldisplay_namestring | nullstateobjectexpires_atstring (date-time)
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 422invalid, unknown_root, invalid_content, invalid_update or out_of_range
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/tides/rooms/$ROOM/presence" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_presence_set', {
room: '<room>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_presence_set",
"arguments": {
"room": "<room>",
"body": {}
}
}
}Rooms
List the rooms the caller can read, newest first
GET/v1/tides/rooms
Scope tides:read. Each room with its head_seq, size_bytes, live presence_count and the caller's perms. Pass next_after back as after for the next page.
Parameters
project_idquery · stringlimitquery · integerafterquery · stringdeletedquery · booleantrue lists the trash (30 days)
subject_typequery · "document" | "project" | "org" | "thread" | "task" | "meeting" | "other"subject_idquery · string
Responses
- 200A page of rooms
Response fields
dataobject[]requireddata[].[].idstringpattern
^tr_[a-z2-7]{26}$data[].[].object"tides.room"data[].[].namestringdata[].[].protocol"yjs-v1-text" | "yjs-v1-doc" | "opaque-v1"data[].[].schemastring | nulldata[].[].access"org" | "project" | "members"data[].[].subjectobject | nulldata[].[].history"compact" | "full"data[].[].project_idstringdata[].[].environment"sandbox" | "live"data[].[].metadataobjectdata[].[].head_seqintegerdata[].[].cursorstringdata[].[].size_bytesintegerdata[].[].ops_bytesintegerdata[].[].presence_countintegerdata[].[].perms"read" | "write" | "presence" | "admin"[]data[].[].created_bystringdata[].[].created_by_kindstringdata[].[].created_atstring (date-time)data[].[].updated_atstring (date-time)data[].[].deleted_atstring | null (date-time)data[].[].versionintegerhas_morebooleannext_afterstring | null
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 422invalid, unknown_root, invalid_content, invalid_update or out_of_range
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/tides/rooms" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_rooms_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_rooms_list",
"arguments": {}
}
}Create a room
POST/v1/tides/rooms
Scope tides:write. The protocol (and schema) never change afterwards. The creator becomes the room's admin. The room goes to the selected project, or project_id (which must match a selected project). An org has at most 500 rooms per environment (409 room_limit). With an idempotency_key, a retry returns the same room (200) instead of a new one (201).
Request body application/json
namestringrequiredmin length 1 · max length 200
protocol"yjs-v1-text" | "yjs-v1-doc" | "opaque-v1"default
"yjs-v1-text"schema"canvas.v1" | "prose.v1" | "blocks.v1"Required for yjs-v1-doc rooms
access"org" | "project" | "members"project needs a selected project or project_id default
"org"subjectobjectWhat the room is the live space of
subject.type"document" | "project" | "org" | "thread" | "task" | "meeting" | "other"requiredsubject.idstring | nullpattern
^[A-Za-z0-9][A-Za-z0-9_:.@-]{0,127}$history"compact" | "full"default
"compact"metadataobjectproject_idstringpattern
^pr_[A-Za-z0-9_-]{1,128}$idempotency_keystringmin length 8 · max length 128 · pattern
^[A-Za-z0-9_.:-]{8,128}$
Responses
- 200The room an earlier request with this key created
Response fields
idstringpattern
^tr_[a-z2-7]{26}$object"tides.room"namestringprotocol"yjs-v1-text" | "yjs-v1-doc" | "opaque-v1"schemastring | nullaccess"org" | "project" | "members"subjectobject | nullhistory"compact" | "full"project_idstringenvironment"sandbox" | "live"metadataobjecthead_seqintegercursorstringsize_bytesintegerops_bytesintegerpresence_countintegerperms"read" | "write" | "presence" | "admin"[]created_bystringcreated_by_kindstringcreated_atstring (date-time)updated_atstring (date-time)deleted_atstring | null (date-time)versioninteger
- 201The new room
Response fields
idstringpattern
^tr_[a-z2-7]{26}$object"tides.room"namestringprotocol"yjs-v1-text" | "yjs-v1-doc" | "opaque-v1"schemastring | nullaccess"org" | "project" | "members"subjectobject | nullhistory"compact" | "full"project_idstringenvironment"sandbox" | "live"metadataobjecthead_seqintegercursorstringsize_bytesintegerops_bytesintegerpresence_countintegerperms"read" | "write" | "presence" | "admin"[]created_bystringcreated_by_kindstringcreated_atstring (date-time)updated_atstring (date-time)deleted_atstring | null (date-time)versioninteger
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 409idempotency_conflict, protocol_mismatch, missing_dependencies, find_not_found, room_limit or socket_unavailable
- 413op_too_large (over 256 KiB), room_full (64 MiB) or a body over the limit
- 422invalid, unknown_root, invalid_content, invalid_update or out_of_range
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/tides/rooms" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_rooms_create', {
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_rooms_create",
"arguments": {
"body": {
"name": "string"
}
}
}
}Get a room
GET/v1/tides/rooms/{room}
Scope tides:read.
Parameters
roompath · stringrequired
Responses
- 200The room
Response fields
idstringpattern
^tr_[a-z2-7]{26}$object"tides.room"namestringprotocol"yjs-v1-text" | "yjs-v1-doc" | "opaque-v1"schemastring | nullaccess"org" | "project" | "members"subjectobject | nullhistory"compact" | "full"project_idstringenvironment"sandbox" | "live"metadataobjecthead_seqintegercursorstringsize_bytesintegerops_bytesintegerpresence_countintegerperms"read" | "write" | "presence" | "admin"[]created_bystringcreated_by_kindstringcreated_atstring (date-time)updated_atstring (date-time)deleted_atstring | null (date-time)versioninteger
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/tides/rooms/$ROOM" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_rooms_get', {
room: '<room>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_rooms_get",
"arguments": {
"room": "<room>"
}
}
}Move a room to the trash
DELETE/v1/tides/rooms/{room}
Scope tides:write and the room's admin perm. The room leaves every list and its streams end; restore it within 30 days with tides_rooms_restore.
Parameters
roompath · stringrequired
Responses
- 200The trashed room
Response fields
idstringpattern
^tr_[a-z2-7]{26}$object"tides.room"namestringprotocol"yjs-v1-text" | "yjs-v1-doc" | "opaque-v1"schemastring | nullaccess"org" | "project" | "members"subjectobject | nullhistory"compact" | "full"project_idstringenvironment"sandbox" | "live"metadataobjecthead_seqintegercursorstringsize_bytesintegerops_bytesintegerpresence_countintegerperms"read" | "write" | "presence" | "admin"[]created_bystringcreated_by_kindstringcreated_atstring (date-time)updated_atstring (date-time)deleted_atstring | null (date-time)versioninteger
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/tides/rooms/$ROOM" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_rooms_delete', {
room: '<room>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_rooms_delete",
"arguments": {
"room": "<room>"
}
}
}Rename a room, change its access or metadata
PATCH/v1/tides/rooms/{room}
Scope tides:write and the room's admin perm. The protocol and schema cannot change (422). Changing access re-checks every open stream.
Parameters
roompath · stringrequired
Request body application/json
namestringmin length 1 · max length 200
access"org" | "project" | "members"metadataobject
Responses
- 200The room
Response fields
idstringpattern
^tr_[a-z2-7]{26}$object"tides.room"namestringprotocol"yjs-v1-text" | "yjs-v1-doc" | "opaque-v1"schemastring | nullaccess"org" | "project" | "members"subjectobject | nullhistory"compact" | "full"project_idstringenvironment"sandbox" | "live"metadataobjecthead_seqintegercursorstringsize_bytesintegerops_bytesintegerpresence_countintegerperms"read" | "write" | "presence" | "admin"[]created_bystringcreated_by_kindstringcreated_atstring (date-time)updated_atstring (date-time)deleted_atstring | null (date-time)versioninteger
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 422invalid, unknown_root, invalid_content, invalid_update or out_of_range
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/tides/rooms/$ROOM" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_rooms_update', {
room: '<room>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_rooms_update",
"arguments": {
"room": "<room>",
"body": {}
}
}
}Edit
Edit a room's document with plain edits (the agent path)
POST/v1/tides/rooms/{room}/edit
Scope tides:write and the room's write perm; meters tides.ops. Tides turns the edits into one CRDT update, so people's open editors merge it live. Positions (at, len) count Unicode code points. target is a root (text, prosemirror, meta, shapes, ...) or a path into a map (shapes/s1). Text and rich-text targets take insert, delete, replace (the nth occurrence of find) and append (rich text: blank-line separated paragraphs, a leading # makes a heading); maps take set and delete_key. In a blocks.v1 room, target blocks takes insert_block (id, type, text, checked, after: a block id, null for the top, left out for the end), set_block, move_block, delete_block, append and replace (across blocks); a block's own text is blocks/<id>/text. With base_cursor (the cursor of the state you read) positions are read against that version and carried onto edits made since. All edits apply or none do. An edit that changes nothing appends no op (applied: false).
Parameters
roompath · stringrequiredasquery · "one"oneshows a person session's writes as One's (actoragent one:<person>on behalf of the person); person sessions only
Request body application/json
targetstringA root or a map path, e.g. text, prosemirror, meta, shapes/s1 default
"text"opsobject[]requiredops[].[].op"insert" | "delete" | "replace" | "append" | "set" | "delete_key" | "insert_block" | "set_block" | "move_block" | "delete_block"requiredops[].[].atintegerinsert, delete: code-point position min 0
ops[].[].lenintegerdelete: code points min 0
ops[].[].textstringinsert, append max length 65536
ops[].[].findstringreplace min length 1 · max length 65536
ops[].[].withstringreplace max length 65536
ops[].[].occurrenceintegerreplace: which match, from 1 min 1
ops[].[].keystringset, delete_key pattern
^[A-Za-z0-9_.:-]{1,128}$ops[].[].idstring*_block: the block id pattern
^[A-Za-z0-9_-]{1,80}$ops[].[].typestringinsert_block, set_block: paragraph, heading_1, heading_2, heading_3, bulleted_list_item, numbered_list_item, to_do, quote, code pattern
^[a-z][a-z0-9_]{0,39}$ops[].[].checkedbooleaninsert_block, set_block: a to_do's state
ops[].[].afterstring | nullinsert_block, move_block: the block to follow; null for the top; left out for the end
ops[].[].valueanyset: any JSON value up to 64 KiB
base_cursorstringThe cursor of the state the positions were read from
idempotency_keystringrequiredmin length 8 · max length 128 · pattern
^[A-Za-z0-9_.:-]{8,128}$
Responses
- 200The op an earlier request with this key appended, or nothing changed
Response fields
seqintegercursorstringreplayedbooleanappliedboolean
- 201The new op
Response fields
seqintegercursorstringreplayedbooleanappliedboolean
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 409idempotency_conflict, protocol_mismatch, missing_dependencies, find_not_found, room_limit or socket_unavailable
- 413op_too_large (over 256 KiB), room_full (64 MiB) or a body over the limit
- 422invalid, unknown_root, invalid_content, invalid_update or out_of_range
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/tides/rooms/$ROOM/edit" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ops": [
{
"op": "insert"
}
],
"idempotency_key": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_edit', {
room: '<room>',
body: {
ops: [
{
op: 'insert',
},
],
idempotency_key: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_edit",
"arguments": {
"room": "<room>",
"body": {
"ops": [
{
"op": "insert"
}
],
"idempotency_key": "string"
}
}
}
}Export
Export everything you may take out of a room
GET/v1/tides/rooms/{room}/export
Scope tides:read. The room, its document (the Yjs state, and Markdown and JSON renderings), its named versions with their content, its full activity log and, for the room's admins, its members. People keep what they make (CURRENT rule 11).
Parameters
roompath · stringrequired
Responses
- 200The export
Response fields
object"tides.export"exported_atstring (date-time)roomobjectroom.idstringpattern
^tr_[a-z2-7]{26}$room.object"tides.room"room.namestringroom.protocol"yjs-v1-text" | "yjs-v1-doc" | "opaque-v1"room.schemastring | nullroom.access"org" | "project" | "members"room.subjectobject | nullroom.history"compact" | "full"room.project_idstringroom.environment"sandbox" | "live"room.metadataobjectroom.head_seqintegerroom.cursorstringroom.size_bytesintegerroom.ops_bytesintegerroom.presence_countintegerroom.perms"read" | "write" | "presence" | "admin"[]room.created_bystringroom.created_by_kindstringroom.created_atstring (date-time)room.updated_atstring (date-time)room.deleted_atstring | null (date-time)room.versionintegerdocumentobject | nulldocument.cursorstringdocument.yjsstringdocument.markdownstringdocument.jsonobjectversionsobject[]versions[].[].idstringversions[].[].object"tides.snapshot"versions[].[].room_idstringversions[].[].seqintegerversions[].[].cursorstringversions[].[].kind"named" | "auto"versions[].[].labelstring | nullversions[].[].bytesintegerversions[].[].created_bystringversions[].[].created_atstring (date-time)versions[].[].formatstringversions[].[].statestringversions[].[].contentanyactivityobject[]membersobject[]members[].[].principalstringmembers[].[].kind"human" | "agent" | "key"members[].[].role"owner" | "editor" | "viewer" | nullmembers[].[].perms"read" | "write" | "presence" | "admin"[]members[].[].granted_bystringmembers[].[].granted_atstring (date-time)members[].[].revoked_atstring | null (date-time)members[].[].revoked_at_seqinteger | null
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/tides/rooms/$ROOM/export" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_rooms_export', {
room: '<room>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_rooms_export",
"arguments": {
"room": "<room>"
}
}
}Join
Join a room (stream URLs, cursor and the caller's perms)
POST/v1/tides/rooms/{room}/join
Scope tides:read. Returns the connection id, the head cursor, the stream, state and presence URLs, and how the caller's ops will be attributed. want: socket returns a single-use 60-second ticket for the low-latency socket once it is enabled; until then it is a 409 socket_unavailable and the stream is the way in.
Parameters
roompath · stringrequiredasquery · "one"oneshows a person session's writes as One's (actoragent one:<person>on behalf of the person); person sessions only
Request body application/json
want"sse" | "socket"default
"sse"resumestringpattern
^tc_[a-z2-7]{26}$
Responses
- 200How to follow the room
Response fields
room_idstringpattern
^tr_[a-z2-7]{26}$conn_idstringpattern
^tc_[a-z2-7]{26}$actorobjectactor.kind"human" | "agent" | "key"actor.idstringactor.on_behalf_ofstring | nullactor.via"session" | "key" | "delegation" | "agent" | "one"perms"read" | "write" | "presence" | "admin"[]protocolstringschemastring | nullcursorstringsse_urlstring (uri)state_urlstring (uri)presence_urlstring (uri)socket_urlstring (uri)ticketstringSingle use, 60 s; send as Sec-WebSocket-Protocol "ticket.<ticket>"
expires_atstring (date-time)
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 409idempotency_conflict, protocol_mismatch, missing_dependencies, find_not_found, room_limit or socket_unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/tides/rooms/$ROOM/join" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_join', {
room: '<room>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_join",
"arguments": {
"room": "<room>",
"body": {}
}
}
}Members
List a room's grants, including revoked ones
GET/v1/tides/rooms/{room}/members
Scope tides:read and the room's admin perm.
Parameters
roompath · stringrequired
Responses
- 200The grants
Response fields
dataobject[]requireddata[].[].principalstringdata[].[].kind"human" | "agent" | "key"data[].[].role"owner" | "editor" | "viewer" | nulldata[].[].perms"read" | "write" | "presence" | "admin"[]data[].[].granted_bystringdata[].[].granted_atstring (date-time)data[].[].revoked_atstring | null (date-time)data[].[].revoked_at_seqinteger | null
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/tides/rooms/$ROOM/members" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_members_list', {
room: '<room>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_members_list",
"arguments": {
"room": "<room>"
}
}
}Grant a principal perms in a room (replaces its previous perms)
PUT/v1/tides/rooms/{room}/members/{principal}
Scope tides:write and the room's admin perm. Send a role (owner = all four perms, editor = read, write, presence, viewer = read, presence) or explicit perms; read is always included. The principal is a person (h_), an agent (a_, or an OpenAgentID DID did:oas:…, matched against an agent token's gateway-signed DID) or a key. Each perm still needs the principal's own scope: read and presence need tides:read, write and admin need tides:write.
Parameters
roompath · stringrequiredprincipalpath · stringrequiredA person (h_), an agent (a_ or an OpenAgentID did:oas:…) or a key id
Request body application/json
role"owner" | "editor" | "viewer"Or perms; not both
perms"read" | "write" | "presence" | "admin"[]kind"human" | "agent" | "key"Inferred from the id prefix (h_, a_, key_) when left out
Responses
- 200The grant
Response fields
principalstringkind"human" | "agent" | "key"role"owner" | "editor" | "viewer" | nullperms"read" | "write" | "presence" | "admin"[]granted_bystringgranted_atstring (date-time)revoked_atstring | null (date-time)revoked_at_seqinteger | null
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 422invalid, unknown_root, invalid_content, invalid_update or out_of_range
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/tides/rooms/$ROOM/members/$PRINCIPAL" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_members_grant', {
room: '<room>',
principal: '<principal>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_members_grant",
"arguments": {
"room": "<room>",
"principal": "<principal>",
"body": {}
}
}
}Revoke a principal from a room
DELETE/v1/tides/rooms/{room}/members/{principal}
Scope tides:write and the room's admin perm. Records revoked_at_seq; nothing by that principal lands after it, its presence is cleared and its streams end within about a second. A revoke holds even in an access: org room.
Parameters
roompath · stringrequiredprincipalpath · stringrequiredA person (h_), an agent (a_ or an OpenAgentID did:oas:…) or a key id
Responses
- 200The revoked grant
Response fields
principalstringkind"human" | "agent" | "key"role"owner" | "editor" | "viewer" | nullperms"read" | "write" | "presence" | "admin"[]granted_bystringgranted_atstring (date-time)revoked_atstring | null (date-time)revoked_at_seqinteger | null
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/tides/rooms/$ROOM/members/$PRINCIPAL" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_members_revoke', {
room: '<room>',
principal: '<principal>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_members_revoke",
"arguments": {
"room": "<room>",
"principal": "<principal>"
}
}
}Ops
Replay a room's ops after a cursor, or wait for the next ones
GET/v1/tides/rooms/{room}/ops
Scope tides:read. Up to limit ops after cursor (the start when left out). With wait (seconds, up to 25) an empty page waits for the next op; permission is checked again on every poll. Apply the page, then continue from its cursor.
Parameters
roompath · stringrequiredcursorquery · stringA cursor this room returned (
<room>:<seq>); the start when left outlimitquery · integerwaitquery · integer
Responses
- 200A page of ops
Response fields
dataobject[]requireddata[].[].seqintegerdata[].[].cursorstringdata[].[].kind"update" | "edit" | "restore"data[].[].actor_kind"human" | "agent" | "key"data[].[].actor_idstringdata[].[].actor_didstring | nulldata[].[].on_behalf_ofstring | nulldata[].[].viastringdata[].[].updatestringdata[].[].payloadstringdata[].[].created_atstring (date-time)cursorstringrequiredhead_seqinteger
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 422invalid, unknown_root, invalid_content, invalid_update or out_of_range
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/tides/rooms/$ROOM/ops" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_ops_list', {
room: '<room>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_ops_list",
"arguments": {
"room": "<room>"
}
}
}Append one op (a Yjs update, or opaque bytes)
POST/v1/tides/rooms/{room}/ops
Scope tides:write and the room's write perm; meters tides.ops and tides.op_bytes. For CRDT-aware clients: update is a Yjs v1 update (Yjs rooms), payload raw bytes (opaque-v1 rooms), base64, at most 256 KiB. The update is applied to the room's document first: an unknown root or the wrong kind of content is a 422, an update that depends on changes the room has not seen a 409 missing_dependencies (sync first). Agents usually want tides_edit instead.
Parameters
roompath · stringrequiredasquery · "one"oneshows a person session's writes as One's (actoragent one:<person>on behalf of the person); person sessions only
Request body application/json
updatestringA Yjs v1 update (yjs-v1-text and yjs-v1-doc rooms)
payloadstringRaw bytes (opaque-v1 rooms)
idempotency_keystringrequiredmin length 8 · max length 128 · pattern
^[A-Za-z0-9_.:-]{8,128}$
Responses
- 200The op an earlier request with this key appended
Response fields
seqintegercursorstringreplayedbooleanappliedboolean
- 201The new op
Response fields
seqintegercursorstringreplayedbooleanappliedboolean
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 409idempotency_conflict, protocol_mismatch, missing_dependencies, find_not_found, room_limit or socket_unavailable
- 413op_too_large (over 256 KiB), room_full (64 MiB) or a body over the limit
- 422invalid, unknown_root, invalid_content, invalid_update or out_of_range
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/tides/rooms/$ROOM/ops" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"idempotency_key": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_ops_append', {
room: '<room>',
body: {
idempotency_key: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_ops_append",
"arguments": {
"room": "<room>",
"body": {
"idempotency_key": "string"
}
}
}
}Restore
Restore a trashed room
POST/v1/tides/rooms/{room}/restore
Scope tides:write and the room's admin perm; within 30 days of the trash.
Parameters
roompath · stringrequired
Responses
- 200The restored room
Response fields
idstringpattern
^tr_[a-z2-7]{26}$object"tides.room"namestringprotocol"yjs-v1-text" | "yjs-v1-doc" | "opaque-v1"schemastring | nullaccess"org" | "project" | "members"subjectobject | nullhistory"compact" | "full"project_idstringenvironment"sandbox" | "live"metadataobjecthead_seqintegercursorstringsize_bytesintegerops_bytesintegerpresence_countintegerperms"read" | "write" | "presence" | "admin"[]created_bystringcreated_by_kindstringcreated_atstring (date-time)updated_atstring (date-time)deleted_atstring | null (date-time)versioninteger
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/tides/rooms/$ROOM/restore" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_rooms_restore', {
room: '<room>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_rooms_restore",
"arguments": {
"room": "<room>"
}
}
}Snapshots
List a room's versions, newest first
GET/v1/tides/rooms/{room}/snapshots
Scope tides:read. named versions people and agents made, and auto compaction points.
Parameters
roompath · stringrequiredkindquery · "named" | "auto"
Responses
- 200The versions
Response fields
dataobject[]requireddata[].[].idstringdata[].[].object"tides.snapshot"data[].[].room_idstringdata[].[].seqintegerdata[].[].cursorstringdata[].[].kind"named" | "auto"data[].[].labelstring | nulldata[].[].bytesintegerdata[].[].created_bystringdata[].[].created_atstring (date-time)data[].[].formatstringdata[].[].statestringdata[].[].contentany
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/tides/rooms/$ROOM/snapshots" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_snapshots_list', {
room: '<room>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_snapshots_list",
"arguments": {
"room": "<room>"
}
}
}Save a named version of the room's document
POST/v1/tides/rooms/{room}/snapshots
Scope tides:write and the room's write perm; meters tides.snapshots.
Parameters
roompath · stringrequired
Request body application/json
labelstringmax length 120
Responses
- 201The version
Response fields
idstringobject"tides.snapshot"room_idstringseqintegercursorstringkind"named" | "auto"labelstring | nullbytesintegercreated_bystringcreated_atstring (date-time)formatstringstatestringcontentany
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 409idempotency_conflict, protocol_mismatch, missing_dependencies, find_not_found, room_limit or socket_unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/tides/rooms/$ROOM/snapshots" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_snapshots_create', {
room: '<room>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_snapshots_create",
"arguments": {
"room": "<room>",
"body": {}
}
}
}Get a version, optionally rendered
GET/v1/tides/rooms/{room}/snapshots/{snapshot}
Scope tides:read. With format, the version's document as tides_state renders it.
Parameters
roompath · stringrequiredsnapshotpath · stringrequiredformatquery · "yjs" | "text" | "json" | "markdown"
Responses
- 200The version
Response fields
idstringobject"tides.snapshot"room_idstringseqintegercursorstringkind"named" | "auto"labelstring | nullbytesintegercreated_bystringcreated_atstring (date-time)formatstringstatestringcontentany
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/tides/rooms/$ROOM/snapshots/$SNAPSHOT" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_snapshots_get', {
room: '<room>',
snapshot: '<snapshot>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_snapshots_get",
"arguments": {
"room": "<room>",
"snapshot": "<snapshot>"
}
}
}Bring the document back to a version
POST/v1/tides/rooms/{room}/snapshots/{snapshot}/restore
Scope tides:write and the room's write perm; meters tides.ops. Appends one new op that makes the document match the version; history is never rewritten, and open editors merge it like any other edit.
Parameters
roompath · stringrequiredsnapshotpath · stringrequiredasquery · "one"oneshows a person session's writes as One's (actoragent one:<person>on behalf of the person); person sessions only
Request body application/json
idempotency_keystringrequiredmin length 8 · max length 128 · pattern
^[A-Za-z0-9_.:-]{8,128}$
Responses
- 200The op an earlier request with this key appended, or the document already matched
Response fields
seqintegercursorstringreplayedbooleanappliedboolean
- 201The restore op
Response fields
seqintegercursorstringreplayedbooleanappliedboolean
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 409idempotency_conflict, protocol_mismatch, missing_dependencies, find_not_found, room_limit or socket_unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/tides/rooms/$ROOM/snapshots/$SNAPSHOT/restore" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"idempotency_key": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_snapshots_restore', {
room: '<room>',
snapshot: '<snapshot>',
body: {
idempotency_key: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_snapshots_restore",
"arguments": {
"room": "<room>",
"snapshot": "<snapshot>",
"body": {
"idempotency_key": "string"
}
}
}
}State
Read a room's document
GET/v1/tides/rooms/{room}/state
Scope tides:read. yjs (default) is the full Yjs state as base64 for apps: apply it, then follow from cursor. text, json and markdown render the document for agents (prose.v1 as ProseMirror JSON or Markdown; canvas.v1 maps as JSON, shapes and blocks as Markdown). opaque-v1 rooms have only json (the head).
Parameters
roompath · stringrequiredformatquery · "yjs" | "text" | "json" | "markdown"
Responses
- 200The document at
cursorResponse fields
room_idstringprotocolstringschemastring | nullseqintegercursorstringformatstringstatestringformat=yjs
contentanyformat=text|markdown: a string; json: an object
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 409idempotency_conflict, protocol_mismatch, missing_dependencies, find_not_found, room_limit or socket_unavailable
- 422invalid, unknown_root, invalid_content, invalid_update or out_of_range
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/tides/rooms/$ROOM/state" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_state', {
room: '<room>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_state",
"arguments": {
"room": "<room>"
}
}
}Stream
Follow a room live (server-sent events)
GET/v1/tides/rooms/{room}/stream
Scope tides:read; meters tides.connection_minutes. text/event-stream from cursor (or Last-Event-ID): ready once, op per op (its id is its cursor, so a reconnecting EventSource resumes exactly), presence with the full list whenever it changes, a : ping comment every 15 s, reconnect after 55 minutes (reconnect from the cursor), and error (revoked) if the caller loses read access.
Parameters
roompath · stringrequiredcursorquery · stringA cursor this room returned (
<room>:<seq>); the start when left outconn_idquery · stringlast-event-idheader · string
Responses
- 200The event stream
Response fields
Type:
string - 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 404No such room (or one the caller cannot read), or no such version
- 422invalid, unknown_root, invalid_content, invalid_update or out_of_range
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/tides/rooms/$ROOM/stream" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_stream', {
room: '<room>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "tides_stream",
"arguments": {
"room": "<room>"
}
}
}
}Whoami
The verified caller and how its ops are attributed
GET/v1/tides/whoami
Scope tides:read.
Parameters
asquery · "one"oneshows a person session's writes as One's (actoragent one:<person>on behalf of the person); person sessions only
Responses
- 200The caller
Response fields
orgstringprincipalstringkindstringscopesstring[]environment"sandbox" | "live"project_idstring | nullactorobjectactor.kind"human" | "agent" | "key"actor.idstringactor.on_behalf_ofstring | nullactor.via"session" | "key" | "delegation" | "agent" | "one"
- 401Missing or invalid identity, or a replayed request
- 403The credential lacks the scope, the caller lacks the room perm, or a cursor from another room
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/tides/whoami" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('tides_whoami'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tides_whoami",
"arguments": {}
}
}L1fe AI Inc. · Built from Genesis 0.3.1 and the live gateway on 2026-10-25. Support