Search
Cross-collection semantic search
Search across user collections
Authorization
bearerAuth Supabase JWT token
In: header
Request Body
application/json
Search query text for semantic matching
1 <= length <= 500Filter results to specific entity type
Filter collections by user role (only search collections where user has this role)
"owner" | "editor" | "viewer"Include results from public-domain namespace (default: false)
falseMaximum number of results to return (default: 20, max: 100)
201 <= value <= 100Entity expansion mode. Default: "preview" for lightweight previews, "full" for complete manifests, "none" for no expansion.
"preview" | "full" | "none"Response Body
application/json
application/json
application/json
curl -X POST "https://arke-v1.arke.institute/users/me/search" \ -H "Content-Type: application/json" \ -d '{ "query": "medical research" }'{
"results": [
{
"pi": "01KDETYWYWM0MJVKM8DK3AEXPY",
"type": "file",
"label": "Research Paper.pdf",
"collection_pi": "01JCOLLECTION123456789AB",
"score": 0.87,
"created_at": "2026-01-12T00:00:00.000Z",
"updated_at": "2026-01-12T10:30:00.000Z",
"entity_preview": {
"id": "01KDETYWYWM0MJVKM8DK3AEXPY",
"type": "file",
"label": "Research Paper.pdf",
"collection_pi": "01JCOLLECTION123456789AB",
"description_preview": "A comprehensive study on distributed systems architecture...",
"created_at": "2026-01-12T00:00:00.000Z",
"updated_at": "2026-01-12T10:30:00.000Z"
},
"entity": {
"id": "01KDETYWYWM0MJVKM8DK3AEXPY",
"cid": "bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy",
"type": "collection",
"properties": {
"label": "The Pequod's Archive",
"description": "A collection of whaling documents"
},
"relationships": [
{
"predicate": "crew",
"peer": "01KDETYWYWM0MJVKM8DK3AEXPY",
"peer_type": "collection"
}
],
"ver": 1,
"created_at": "2025-12-26T12:00:00.000Z",
"ts": 1735214400000,
"edited_by": {
"user_id": "01JCAPTAINAHAB000000000000",
"user_label": "Captain Ahab",
"method": "manual"
},
"prev_cid": "bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy"
}
}
],
"metadata": {
"query": "string",
"collections_queried": 0,
"collections_total": 0,
"include_public": true,
"execution_time_ms": 0,
"result_count": 0
}
}{
"error": "Validation failed",
"details": {
"issues": [
{
"path": [
"properties",
"label"
],
"message": "Required"
}
]
}
}{
"error": "Unauthorized: Missing or invalid authentication token"
}Find similar collections
Authorization
bearerAuth Supabase JWT token
In: header
Request Body
application/json
Collection PI to find similar collections for
Maximum results to return
101 <= value <= 100Force fresh query, bypassing cache
falseEntity expansion mode. Default: "preview" for lightweight previews, "full" for complete manifests, "none" for no expansion.
"preview" | "full" | "none"Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://arke-v1.arke.institute/search/similar/collections" \ -H "Content-Type: application/json" \ -d '{ "pi": "string" }'{
"results": [
{
"pi": "string",
"label": "string",
"score": 0,
"created_at": "string",
"updated_at": "string",
"entity_preview": {
"id": "01KCOLLECTION123456789ABCD",
"type": "collection",
"label": "Research Papers Collection",
"collection_pi": "01JCOLLECTION123456789AB",
"description_preview": "A curated collection of academic research papers...",
"created_at": "2026-01-10T00:00:00.000Z",
"updated_at": "2026-01-15T12:00:00.000Z"
},
"entity": {
"id": "01KDETYWYWM0MJVKM8DK3AEXPY",
"cid": "bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy",
"type": "collection",
"properties": {
"label": "The Pequod's Archive",
"description": "A collection of whaling documents"
},
"relationships": [
{
"predicate": "crew",
"peer": "01KDETYWYWM0MJVKM8DK3AEXPY",
"peer_type": "collection"
}
],
"ver": 1,
"created_at": "2025-12-26T12:00:00.000Z",
"ts": 1735214400000,
"edited_by": {
"user_id": "01JCAPTAINAHAB000000000000",
"user_label": "Captain Ahab",
"method": "manual"
},
"prev_cid": "bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy"
}
}
],
"metadata": {
"source_pi": "string",
"result_count": 0,
"cached": true,
"cached_at": "string"
}
}{
"error": "Validation failed",
"details": {
"issues": [
{
"path": [
"properties",
"label"
],
"message": "Required"
}
]
}
}{
"error": "Entity not found"
}{
"error": "Service unavailable",
"details": {
"service": "pinecone"
}
}Find similar items across collections
Authorization
bearerAuth Supabase JWT token
In: header
Request Body
application/json
Entity PI to find similar items for
Entity's collection PI
Maximum results to return
201 <= value <= 100Number of similar collections to search
101 <= value <= 50Items to fetch per collection
51 <= value <= 20Include results from the same collection
trueForce fresh query, bypassing cache
falseEntity expansion mode. Default: "preview" for lightweight previews, "full" for complete manifests, "none" for no expansion.
"preview" | "full" | "none"Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://arke-v1.arke.institute/search/similar/items" \ -H "Content-Type: application/json" \ -d '{ "pi": "string", "collection_pi": "string" }'{
"results": [
{
"pi": "string",
"type": "string",
"label": "string",
"collection_pi": "string",
"score": 0,
"created_at": "string",
"updated_at": "string",
"entity_preview": {
"id": "01KENTITY123456789ABCDEFGH",
"type": "document",
"label": "Similar Research Paper",
"collection_pi": "01JCOLLECTION123456789AB",
"description_preview": "Related findings on distributed systems...",
"created_at": "2026-01-08T00:00:00.000Z",
"updated_at": "2026-01-12T10:00:00.000Z"
},
"entity": {
"id": "01KDETYWYWM0MJVKM8DK3AEXPY",
"cid": "bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy",
"type": "collection",
"properties": {
"label": "The Pequod's Archive",
"description": "A collection of whaling documents"
},
"relationships": [
{
"predicate": "crew",
"peer": "01KDETYWYWM0MJVKM8DK3AEXPY",
"peer_type": "collection"
}
],
"ver": 1,
"created_at": "2025-12-26T12:00:00.000Z",
"ts": 1735214400000,
"edited_by": {
"user_id": "01JCAPTAINAHAB000000000000",
"user_label": "Captain Ahab",
"method": "manual"
},
"prev_cid": "bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy"
}
}
],
"metadata": {
"source_pi": "string",
"collections_searched": 0,
"result_count": 0,
"cached": true,
"cached_at": "string"
}
}{
"error": "Validation failed",
"details": {
"issues": [
{
"path": [
"properties",
"label"
],
"message": "Required"
}
]
}
}{
"error": "Entity not found"
}{
"error": "Service unavailable",
"details": {
"service": "pinecone"
}
}Search collections by text
Authorization
bearerAuth Supabase JWT token
In: header
Request Body
application/json
Search query text
1 <= length <= 500Maximum results to return
101 <= value <= 100Filter by collection types
Entity expansion mode. Default: "preview" for lightweight previews, "full" for complete manifests, "none" for no expansion.
"preview" | "full" | "none"Response Body
application/json
application/json
application/json
curl -X POST "https://arke-v1.arke.institute/search/collections" \ -H "Content-Type: application/json" \ -d '{ "query": "string" }'{
"results": [
{
"pi": "string",
"label": "string",
"type": "string",
"score": 0,
"created_at": "string",
"updated_at": "string",
"entity_preview": {
"id": "01KCOLLECTION123456789ABCD",
"type": "collection",
"label": "Machine Learning Papers",
"collection_pi": "01JCOLLECTION123456789AB",
"description_preview": "A collection of papers on neural networks and deep learning...",
"created_at": "2026-01-05T00:00:00.000Z",
"updated_at": "2026-01-10T08:00:00.000Z"
},
"entity": {
"id": "01KDETYWYWM0MJVKM8DK3AEXPY",
"cid": "bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy",
"type": "collection",
"properties": {
"label": "The Pequod's Archive",
"description": "A collection of whaling documents"
},
"relationships": [
{
"predicate": "crew",
"peer": "01KDETYWYWM0MJVKM8DK3AEXPY",
"peer_type": "collection"
}
],
"ver": 1,
"created_at": "2025-12-26T12:00:00.000Z",
"ts": 1735214400000,
"edited_by": {
"user_id": "01JCAPTAINAHAB000000000000",
"user_label": "Captain Ahab",
"method": "manual"
},
"prev_cid": "bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy"
}
}
],
"metadata": {
"query": "string",
"result_count": 0
}
}{
"error": "Validation failed",
"details": {
"issues": [
{
"path": [
"properties",
"label"
],
"message": "Required"
}
]
}
}{
"error": "Service unavailable",
"details": {
"service": "pinecone"
}
}Search agents by text
Authorization
bearerAuth Supabase JWT token
In: header
Request Body
application/json
Search query text
1 <= length <= 500Maximum results to return
101 <= value <= 100Entity expansion mode. Default: "preview" for lightweight previews, "full" for complete manifests, "none" for no expansion.
"preview" | "full" | "none"Search scope. "official" (default) searches only the pre-approved Arke agents collection. "all" searches all agents network-wide (not recommended - may include duplicates, outdated, or unapproved agents).
"official""official" | "all"Response Body
application/json
application/json
application/json
curl -X POST "https://arke-v1.arke.institute/search/agents" \ -H "Content-Type: application/json" \ -d '{ "query": "string" }'{
"results": [
{
"pi": "string",
"label": "string",
"score": 0,
"collection_pi": "string",
"status": "string",
"created_at": "string",
"updated_at": "string",
"entity_preview": {
"id": "01KAGENT123456789ABCDEFGHI",
"type": "agent",
"label": "Document Analyzer Agent",
"collection_pi": "01JCOLLECTION123456789AB",
"description_preview": "An AI agent that analyzes documents and extracts key insights...",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-15T16:00:00.000Z"
},
"entity": {
"id": "01KDETYWYWM0MJVKM8DK3AEXPY",
"cid": "bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy",
"type": "collection",
"properties": {
"label": "The Pequod's Archive",
"description": "A collection of whaling documents"
},
"relationships": [
{
"predicate": "crew",
"peer": "01KDETYWYWM0MJVKM8DK3AEXPY",
"peer_type": "collection"
}
],
"ver": 1,
"created_at": "2025-12-26T12:00:00.000Z",
"ts": 1735214400000,
"edited_by": {
"user_id": "01JCAPTAINAHAB000000000000",
"user_label": "Captain Ahab",
"method": "manual"
},
"prev_cid": "bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy"
}
}
],
"metadata": {
"query": "string",
"result_count": 0
}
}{
"error": "Validation failed",
"details": {
"issues": [
{
"path": [
"properties",
"label"
],
"message": "Required"
}
]
}
}{
"error": "Service unavailable",
"details": {
"service": "pinecone"
}
}Search entities within collection(s)
Authorization
bearerAuth Supabase JWT token
In: header
Request Body
application/json
Single collection PI to search within
Multiple collection PIs to search (max 20)
items <= 20Search query text
1 <= length <= 500Maximum total results to return
201 <= value <= 100Filter by entity types
Max results per collection for diversity
1 <= value <= 50Entity expansion mode. Default: "preview" for lightweight previews, "full" for complete manifests, "none" for no expansion.
"preview" | "full" | "none"Response Body
application/json
application/json
application/json
curl -X POST "https://arke-v1.arke.institute/search/entities" \ -H "Content-Type: application/json" \ -d '{ "query": "string" }'{
"results": [
{
"pi": "string",
"label": "string",
"type": "string",
"score": 0,
"collection_pi": "string",
"created_at": "string",
"updated_at": "string",
"entity_preview": {
"id": "01KENTITY123456789ABCDEFGH",
"type": "document",
"label": "Research Findings Report",
"collection_pi": "01JCOLLECTION123456789AB",
"description_preview": "Detailed analysis of experimental results...",
"created_at": "2026-01-10T00:00:00.000Z",
"updated_at": "2026-01-14T09:00:00.000Z"
},
"entity": {
"id": "01KDETYWYWM0MJVKM8DK3AEXPY",
"cid": "bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy",
"type": "collection",
"properties": {
"label": "The Pequod's Archive",
"description": "A collection of whaling documents"
},
"relationships": [
{
"predicate": "crew",
"peer": "01KDETYWYWM0MJVKM8DK3AEXPY",
"peer_type": "collection"
}
],
"ver": 1,
"created_at": "2025-12-26T12:00:00.000Z",
"ts": 1735214400000,
"edited_by": {
"user_id": "01JCAPTAINAHAB000000000000",
"user_label": "Captain Ahab",
"method": "manual"
},
"prev_cid": "bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy"
}
}
],
"metadata": {
"collection_pis": [
"string"
],
"query": "string",
"collections_searched": 0,
"result_count": 0
}
}{
"error": "Validation failed",
"details": {
"issues": [
{
"path": [
"properties",
"label"
],
"message": "Required"
}
]
}
}{
"error": "Service unavailable",
"details": {
"service": "pinecone"
}
}Discover entities across all collections
Authorization
bearerAuth Supabase JWT token
In: header
Request Body
application/json
Search query text
1 <= length <= 500Maximum total results to return
201 <= value <= 100Filter by entity types
Number of collections to search
101 <= value <= 50Max results per collection
51 <= value <= 20Entity expansion mode. Default: "preview" for lightweight previews, "full" for complete manifests, "none" for no expansion.
"preview" | "full" | "none"Response Body
application/json
application/json
application/json
curl -X POST "https://arke-v1.arke.institute/search/discover" \ -H "Content-Type: application/json" \ -d '{ "query": "string" }'{
"results": [
{
"pi": "string",
"label": "string",
"type": "string",
"score": 0,
"collection_pi": "string",
"created_at": "string",
"updated_at": "string",
"entity_preview": {
"id": "01KENTITY123456789ABCDEFGH",
"type": "file",
"label": "Discovered Document.pdf",
"collection_pi": "01JCOLLECTION123456789AB",
"description_preview": "A document discovered through semantic search...",
"created_at": "2026-01-08T00:00:00.000Z",
"updated_at": "2026-01-12T14:00:00.000Z"
},
"entity": {
"id": "01KDETYWYWM0MJVKM8DK3AEXPY",
"cid": "bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy",
"type": "collection",
"properties": {
"label": "The Pequod's Archive",
"description": "A collection of whaling documents"
},
"relationships": [
{
"predicate": "crew",
"peer": "01KDETYWYWM0MJVKM8DK3AEXPY",
"peer_type": "collection"
}
],
"ver": 1,
"created_at": "2025-12-26T12:00:00.000Z",
"ts": 1735214400000,
"edited_by": {
"user_id": "01JCAPTAINAHAB000000000000",
"user_label": "Captain Ahab",
"method": "manual"
},
"prev_cid": "bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy"
}
}
],
"metadata": {
"query": "string",
"collections_searched": 0,
"result_count": 0
}
}{
"error": "Validation failed",
"details": {
"issues": [
{
"path": [
"properties",
"label"
],
"message": "Required"
}
]
}
}{
"error": "Service unavailable",
"details": {
"service": "pinecone"
}
}