Skip to main content
GET
/
api
/
v1
/
recipes
/
{document_id}
Get full recipe document by ID
import requests

url = "https://api.example.com/api/v1/recipes/{document_id}"

response = requests.get(url)

print(response.text)
{
  "result": {
    "id": "<string>",
    "title": "<string>",
    "content": "<string>",
    "source": "graph",
    "metadata": {}
  },
  "success": true,
  "suggestion": "",
  "message": "",
  "meta": {
    "total": 123,
    "offset": 123,
    "limit": 123,
    "has_more": true,
    "after": "<string>",
    "before": "<string>"
  }
}

Headers

X-API-Key
string | null

Path Parameters

document_id
string
required

Query Parameters

source
enum<string>
default:graph

Document source to retrieve from. Possible values: graph, knowledge.

Available options:
graph,
knowledge

Response

Successful Response

result
RecipeDocument · object
required

Unified document response.

success
boolean
default:true
suggestion
string
default:""
message
string
default:""
meta
PaginationMeta · object

Pagination metadata for list responses.

Supports both legacy offset-based and cursor-based pagination. Cursor fields (has_more, after, before) are populated for cursor-paginated endpoints. Legacy fields (offset, limit) are populated when the caller uses the deprecated offset parameter.