Get document
GET/v3/documents/{id}
Get a document by ID
Returns
connectionId: string
Optional ID of connection the document was created from. This is useful for identifying the source of the document.
minLength22
maxLength22
content: string
The content to extract and process into a document. This can be a URL to a website, a PDF, an image, or a video.
Plaintext: Any plaintext format
URL: A URL to a website, PDF, image, or video
We automatically detect the content type from the url’s response format.
customId: string
Optional custom ID of the document. This could be an ID from your database that will uniquely identify this document.
maxLength255
Get document
curl https://api.supermemory.ai/v3/documents/$ID \
-H "Authorization: Bearer $SUPERMEMORY_API_KEY"{
"id": "acxV5LHMEsG2hMSNb4umbn",
"connectionId": "xxxxxxxxxxxxxxxxxxxxxx",
"content": "Our API rate limits are 100 req/min on free and 1000 on pro.",
"createdAt": "2025-04-15T09:30:00.000Z",
"customId": "doc-api-rate-limits",
"dreamingStatus": "dreaming",
"filepath": "filepath",
"metadata": {
"source": "bar",
"language": "bar"
},
"ogImage": "ogImage",
"raw": "Our API rate limits are 100 req/min on free and 1000 on pro. Clients should use exponential backoff on 429s.",
"source": "text",
"status": "done",
"summary": "API rate limit policy: 100 req/min free, 1000 req/min pro.",
"taskType": "memory",
"title": "API Rate Limiting Policy",
"type": "text",
"updatedAt": "2025-04-15T09:31:00.000Z",
"containerTags": [
"string"
],
"url": "https://docs.example.com/guides/rate-limits"
}Returns Examples
{
"id": "acxV5LHMEsG2hMSNb4umbn",
"connectionId": "xxxxxxxxxxxxxxxxxxxxxx",
"content": "Our API rate limits are 100 req/min on free and 1000 on pro.",
"createdAt": "2025-04-15T09:30:00.000Z",
"customId": "doc-api-rate-limits",
"dreamingStatus": "dreaming",
"filepath": "filepath",
"metadata": {
"source": "bar",
"language": "bar"
},
"ogImage": "ogImage",
"raw": "Our API rate limits are 100 req/min on free and 1000 on pro. Clients should use exponential backoff on 429s.",
"source": "text",
"status": "done",
"summary": "API rate limit policy: 100 req/min free, 1000 req/min pro.",
"taskType": "memory",
"title": "API Rate Limiting Policy",
"type": "text",
"updatedAt": "2025-04-15T09:31:00.000Z",
"containerTags": [
"string"
],
"url": "https://docs.example.com/guides/rate-limits"
}