Hey, human!
This is what your agent sees atdocs.example.com/endpoint/post-api-v1-projects-slug-context
HTTP/2 200 OK content-type: text/markdown; charset=utf-8 vary: accept, user-agent x-agent: [ai_agent]
Loading the agent response…
Create a context item
Create a new context.
What you provide
- Title: Max 120 characters.
- Contentoptional: Max 8000 characters, so the item embeds as a single retrieval chunk. Longer material goes in several context items.
- Publicoptional
Do this with AI
I want to create a context item. Use the Restless API. Read the reference for this operation and follow it exactly: https://build.restless.ai/endpoint/post-api-v1-projects-slug-context.md Authenticate with your API key as a Bearer token in the Authorization header. Then make the request for me and tell me what came back.
Paste this into Claude, Cursor, or any AI assistant and it will do it for you.
POST
https://app.restless.ai/api/v1/projects/{slug}/contextcurl --request POST \
--url https://app.restless.ai/api/v1/projects/slug/context \
--header 'Authorization: Bearer $API_KEY' \
--header 'Content-Type: application/json' \
--data '
{
"title": "title",
"content": "content",
"public": true
}
'Path parameters
slugstringrequiredProject slug.
Body
application/jsonrequiredtitlestringrequiredMax 120 characters.
max length 120
contentstringMax 8000 characters, so the item embeds as a single retrieval chunk. Longer material goes in several context items.
max length 8000
publicbooleantrue