Research und Briefings mit Quellenangaben
Forschungsprojekte suchen
Research-Projekte mit UUID-Paginierung suchen; nicht verfügbare gespeicherte Elemente enthalten keinen veralteten Text. Erfordert agent:research.
POST /research-api/projects/queryVertrag geprüft: · sha256:ab393e91e9b7f18a
Überblick
Research-Projekte mit UUID-Paginierung suchen; nicht verfügbare gespeicherte Elemente enthalten keinen veralteten Text. Erfordert agent:research.
Eine erfolgreiche HTTP-Antwort kann Annahme statt Abschluss bedeuten. Speichere bei Hintergrundarbeit die ID und prüfe dieselbe Operation bis zum Abschluss. Geplante oder angenommene Beiträge gelten erst nach Plattformbestätigung als veröffentlicht; ein Client-Timeout klärt das Ergebnis nicht.
Authentifizierung und Berechtigungen
Ein Token nutzt nur Eigentümerrechte. Jede Anfrage prüft Workspace-Mitgliedschaft, Ressourceneigentum, gewählte Workspaces und Funktionen. core und full ändern sichtbare Tools; sie erteilen keinen Zugriff.
Anfragefelder
Erforderlich bedeutet innerhalb des übergeordneten Objekts und gewählten Zweigs erforderlich. Ein erforderliches Kind macht kein optionales Elternobjekt erforderlich. Regeln und Feldnamen unten stammen aus dem Vertrag.
| Feld / Variante | Typ / erforderlich | Einschränkungen |
|---|---|---|
$ | objectIm Elternobjekt erforderlich |
|
workspace_id | stringIm Elternobjekt erforderlich |
|
query | stringOptional / Element |
|
archived | booleanOptional / Element |
|
cursor | stringOptional / Element | Nach dieser Research-Datensatz-UUID in aufsteigender UUID-Reihenfolge fortfahren; die Markierung umfasst nicht verfügbare Bibliotheksplätze.
|
limit | integerOptional / Element |
|
Vollständiges JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"query": {
"default": "",
"type": "string",
"maxLength": 200
},
"archived": {
"default": false,
"type": "boolean"
},
"cursor": {
"description": "Continue after this Research record UUID in ascending UUID order; the marker includes unavailable library slots.",
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"limit": {
"default": 25,
"type": "integer",
"minimum": 1,
"maximum": 50
}
},
"required": [
"workspace_id"
],
"additionalProperties": false
}Antwort und Abschluss
HTTP-Erfolgsstatus: 200. Wenn die Operation abgeschlossen ist: currently authorized exact Research resource data.
Eine erfolgreiche HTTP-Antwort kann Annahme statt Abschluss bedeuten. Speichere bei Hintergrundarbeit die ID und prüfe dieselbe Operation bis zum Abschluss. Geplante oder angenommene Beiträge gelten erst nach Plattformbestätigung als veröffentlicht; ein Client-Timeout klärt das Ergebnis nicht.
Erforderlich bedeutet innerhalb des übergeordneten Objekts und gewählten Zweigs erforderlich. Ein erforderliches Kind macht kein optionales Elternobjekt erforderlich. Regeln und Feldnamen unten stammen aus dem Vertrag.
| Feld / Variante | Typ / erforderlich | Einschränkungen |
|---|---|---|
$ | objectIm Elternobjekt erforderlich | — |
items | arrayIm Elternobjekt erforderlich |
|
items[] | objectOptional / Element | — |
items[].id | stringIm Elternobjekt erforderlich |
|
items[].workspace_id | stringIm Elternobjekt erforderlich |
|
items[].revision | integerIm Elternobjekt erforderlich |
|
items[].archived | booleanIm Elternobjekt erforderlich | — |
items[].created_at | stringIm Elternobjekt erforderlich |
|
items[].updated_at | stringIm Elternobjekt erforderlich |
|
items[].content | objectIm Elternobjekt erforderlich | — |
items[].content.title | stringIm Elternobjekt erforderlich |
|
items[].content.question | stringIm Elternobjekt erforderlich |
|
items[].content.purpose | stringIm Elternobjekt erforderlich |
|
items[].content.audience | stringIm Elternobjekt erforderlich |
|
items[].content.brands | arrayIm Elternobjekt erforderlich |
|
items[].content.brands[] | objectOptional / Element | — |
items[].content.brands[].id | stringIm Elternobjekt erforderlich |
|
items[].content.brands[].name | stringIm Elternobjekt erforderlich |
|
items[].content.brands[].terms | arrayIm Elternobjekt erforderlich |
|
items[].content.brands[].terms[] | stringOptional / Element |
|
items[].content.scope | objectIm Elternobjekt erforderlich | — |
items[].content.scope.query | stringIm Elternobjekt erforderlich |
|
items[].content.scope.excluded_terms | arrayIm Elternobjekt erforderlich |
|
items[].content.scope.excluded_terms[] | stringOptional / Element |
|
items[].content.scope.platforms | arrayIm Elternobjekt erforderlich |
|
items[].content.scope.platforms[] | stringOptional / Element |
|
items[].content.scope.source_categories | arrayIm Elternobjekt erforderlich |
|
items[].content.scope.source_categories[] | stringOptional / Element |
|
items[].content.scope.languages | arrayIm Elternobjekt erforderlich |
|
items[].content.scope.languages[] | stringOptional / Element |
|
items[].content.scope.since | string | nullIm Elternobjekt erforderlich | — |
items[].content.scope.sinceanyOf 1 | stringIm Elternobjekt erforderlich |
|
items[].content.scope.sinceanyOf 2 | nullIm Elternobjekt erforderlich | — |
items[].content.scope.until | string | nullIm Elternobjekt erforderlich | — |
items[].content.scope.untilanyOf 1 | stringIm Elternobjekt erforderlich |
|
items[].content.scope.untilanyOf 2 | nullIm Elternobjekt erforderlich | — |
unavailable_items | arrayIm Elternobjekt erforderlich |
|
unavailable_items[] | objectOptional / Element | — |
unavailable_items[].id | stringIm Elternobjekt erforderlich |
|
unavailable_items[].workspace_id | stringIm Elternobjekt erforderlich |
|
unavailable_items[].revision | integerIm Elternobjekt erforderlich |
|
unavailable_items[].archived | booleanIm Elternobjekt erforderlich | — |
unavailable_items[].availability | stringIm Elternobjekt erforderlich |
|
next_cursor | string | nullIm Elternobjekt erforderlich | Zuletzt verbrauchte Datensatz-UUID über items und unavailable_items, wenn ein weiterer Platz existiert; am Ende null. — |
next_cursoranyOf 1 | stringIm Elternobjekt erforderlich |
|
next_cursoranyOf 2 | nullIm Elternobjekt erforderlich | — |
Vollständiges JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"items": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"workspace_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"archived": {
"type": "boolean"
},
"created_at": {
"type": "string",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"format": "date-time"
},
"updated_at": {
"type": "string",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"format": "date-time"
},
"content": {
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"question": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"purpose": {
"type": "string",
"maxLength": 1000
},
"audience": {
"type": "string",
"maxLength": 2000
},
"brands": {
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"terms": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
"required": [
"id",
"name",
"terms"
]
}
},
"scope": {
"type": "object",
"properties": {
"query": {
"type": "string",
"maxLength": 2000
},
"excluded_terms": {
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
},
"platforms": {
"maxItems": 7,
"type": "array",
"items": {
"type": "string",
"enum": [
"threads",
"instagram",
"facebook",
"youtube",
"x",
"reddit",
"web"
]
}
},
"source_categories": {
"minItems": 1,
"maxItems": 3,
"type": "array",
"items": {
"type": "string",
"enum": [
"your_accounts",
"public_posts",
"team_notes"
]
}
},
"languages": {
"maxItems": 18,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 35
}
},
"since": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"format": "date-time"
},
{
"type": "null"
}
]
},
"until": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"format": "date-time"
},
{
"type": "null"
}
]
}
},
"required": [
"query",
"excluded_terms",
"platforms",
"source_categories",
"languages",
"since",
"until"
]
}
},
"required": [
"title",
"question",
"purpose",
"audience",
"brands",
"scope"
]
}
},
"required": [
"id",
"workspace_id",
"revision",
"archived",
"created_at",
"updated_at",
"content"
]
}
},
"unavailable_items": {
"default": [],
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"workspace_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"archived": {
"type": "boolean"
},
"availability": {
"type": "string",
"const": "dependency_unavailable"
}
},
"required": [
"id",
"workspace_id",
"revision",
"archived",
"availability"
]
}
},
"next_cursor": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
],
"description": "Last consumed record UUID across items and unavailable_items when another slot exists; null at the end."
}
},
"required": [
"items",
"unavailable_items",
"next_cursor"
]
}Fehler und sichere Wiederholungen
Prüfe HTTP-Status und Antwortinhalt. Ein 400-Validierungsfehler kann einen ZodError enthalten; Handler-Fehler verwenden die Felder error, message und code. Bewahre request_id oder x-request-id zur Diagnose ohne Zugangsdaten auf. Behebe 401/403-Zugriffsfehler vor einem erneuten Versuch und beachte Retry-After bei 429. Ist ein Schreibvorgang ungewiss oder liefert 5xx, lies zuerst das bestehende Ergebnis. Verwende einen Idempotenzschlüssel nur wieder, wo dies unterstützt wird; Wiederholungen unterscheiden sich je nach Operation und garantieren keine genau einmalige Zustellung.
Anleitung zur FehlerbehebungBeispiele
Diese Beispiele nutzen anhand der Schemas geprüfte fiktive Werte. Ersetze IDs durch autorisierte IDs, Medien durch bereite Assets und Daten durch bestätigte Veröffentlichungszeiten. Prüfe Kontoeignung vor Schreibvorgängen. Diese Seite sendet keine API-Anfragen.
Setze SOSOAPI_ACCESS_TOKEN auf deinem Server auf akzeptierte Zugangsdaten dieser Operation und halte es aus Browsercode heraus. Für KI-Agenten nutze sosoapi auth login zur Browseranmeldung und lass die CLI Zugangsdaten erneuern.
request.json
{
"workspace_id": "11111111-1111-4111-8111-111111111111"
}cURL
curl --request POST \
"https://gqeshlawtcexsapabaui.supabase.co/functions/v1/research-api/projects/query" \
-H "Authorization: Bearer $SOSOAPI_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
--data-binary @request.jsonJavaScript
// Server-side JavaScript. Do not print tokens or credential-bearing responses.
const token = process.env.SOSOAPI_ACCESS_TOKEN;
if (!token) throw new Error("Set an accepted credential for this operation");
const response = await fetch("https://gqeshlawtcexsapabaui.supabase.co/functions/v1/research-api/projects/query", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: "Bearer " + token },
body: JSON.stringify({
"workspace_id": "11111111-1111-4111-8111-111111111111"
})
});
const result = await response.json();
// Check response.ok, the operation-specific body and completion state before continuing.CLI
npx sosoapi api post /research-api/projects/query < request.jsonSynthetisches Antwortbeispiel
{
"items": [],
"unavailable_items": [],
"next_cursor": null
}