Content
Read a published content passage
Read the exact source behind a search result, or continue reading with its next or previous reference.
/api/v1/content/get- Authentication
- OAuth 2.0 access token
- Required scopes
- See authentication requirements
- Idempotency key
- Not required
- Rate-limit cost
- 1 unit
How to use this endpoint
Send the returned corpus and id. Allowed corpora are knowledge_base, documentation, blog, videos and due_dates. Do not construct IDs or supply URLs. MCP arguments wrap the reference in input.
Returns at most 6000 UTF-8 content bytes, a citation, source/publication metadata and next/previous references. Deadline evidence includes the live schedule, retrieved_at, service dates/UTC cutoffs and separate IRS dates/notes.
Unknown, mismatched, Staff-only, assistant-only and unpublished references return not_found. Dependency failures are errors, not absent content. Reading documentation grants no permission to execute its operations.
Authentication is required; no account-data scope or idempotency key is needed. Read weight is 1. Use content/get_many when reading multiple sources.
curl --request POST 'https://api.efilemagic.com/api/v1/content/get' \
--header 'Authorization: Bearer <access-token>' \
--header 'Content-Type: application/json' \
--data-binary @request.jsonReplace placeholders with your own values. Use the API resource origin provided for your environment.
Create request.json using the documented fields. Field descriptions are not sample values.
Request fields
2 fieldscorpusRequiredstring
Allowed values: "knowledge_base", "documentation", "blog", "due_dates", "videos".
idRequiredstring
Copy an exact returned source or continuation ID; not a URL. Minimum characters: 1. Maximum characters: 200. Pattern: ^[A-Za-z0-9_.:@-]+$
Headers (1)
AuthorizationRequired- OAuth Bearer token with current resource authorization.
curl --request POST 'https://api.efilemagic.com/api/v1/content/get' \
--header 'Authorization: Bearer <access-token>' \
--header 'Content-Type: application/json' \
--data-binary @request.jsonReplace placeholders with your own values. Use the API resource origin provided for your environment.
Create request.json using the documented fields. Field descriptions are not sample values.
On success, data contains the fields below. meta includes api_version and request_id. Keep request_id when reporting a problem.
Response fields
15 fieldscontentAlways returnedstring
At most 6000 UTF-8 bytes. Minimum characters: 1. Maximum characters: 6000.
deadline_detailsAlways returnedobject | null
Unknown fields are rejected.
Nested fields (6)
efile_due_atAlways returnedstring | null
Type: string | null.
irs_efile_due_dateAlways returnedstring | null
Type: string | null.
irs_efile_noteAlways returnedstring | null
Type: string | null.
irs_recipient_due_dateAlways returnedstring | null
Type: string | null.
irs_recipient_noteAlways returnedstring | null
Type: string | null.
print_mail_due_atAlways returnedstring | null
Type: string | null.
efile_due_dateAlways returnedstring | null
Type: string | null.
form_idAlways returnedstring | null
Type: string | null.
guidanceAlways returnedstring
Type: string.
hrefAlways returnedstring
Type: string.
nextAlways returnedobject | null
Unknown fields are rejected.
Nested fields (2)
corpusAlways returnedstring
Allowed values: "knowledge_base", "documentation", "blog", "due_dates", "videos".
idAlways returnedstring
Copy an exact returned source or continuation ID; not a URL. Minimum characters: 1. Maximum characters: 200. Pattern: ^[A-Za-z0-9_.:@-]+$
previousAlways returnedobject | null
Unknown fields are rejected.
Nested fields (2)
corpusAlways returnedstring
Allowed values: "knowledge_base", "documentation", "blog", "due_dates", "videos".
idAlways returnedstring
Copy an exact returned source or continuation ID; not a URL. Minimum characters: 1. Maximum characters: 200. Pattern: ^[A-Za-z0-9_.:@-]+$
print_mail_due_dateAlways returnedstring | null
Type: string | null.
publicationAlways returnedobject | null
Unknown fields are rejected.
Nested fields (4)
published_atAlways returnedstring | null
Type: string | null.
source_reviewed_atAlways returnedstring | null
Type: string | null.
tax_yearAlways returnedinteger | null
Type: integer | null.
updated_atAlways returnedstring | null
Type: string | null.
referenceAlways returnedobject
Unknown fields are rejected.
Nested fields (2)
corpusAlways returnedstring
Allowed values: "knowledge_base", "documentation", "blog", "due_dates", "videos".
idAlways returnedstring
Copy an exact returned source or continuation ID; not a URL. Minimum characters: 1. Maximum characters: 200. Pattern: ^[A-Za-z0-9_.:@-]+$
retrieved_atAlways returnedstring | null
Type: string | null.
{
"data": {
"content": "string",
"deadline_details": "object | null",
"efile_due_date": "string | null",
"form_id": "string | null",
"guidance": "string",
"href": "string",
"next": "object | null",
"previous": "object | null",
"print_mail_due_date": "string | null",
"publication": "object | null",
"reference": "object",
"retrieved_at": "string | null",
"source": "string",
"tax_year": "integer | null",
"title": "string"
},
"meta": {
"api_version": "v1",
"request_id": "string"
}
}Successful response structure. This outline shows field types, not a response to copy. Expand Response fields for nested properties and optional values.
Errors to handle
Errors use {error: {code, message}, meta}. Check the code and message before retrying. Authentication, validation and availability errors can occur before the operation runs.
- 400
invalid_request - Check required fields, selectors and supported values.
- 401
invalid_token - Obtain a valid OAuth token for this resource. Check its expiry and current authorization.
- 403
insufficient_scope - Request the listed scopes through the application's authorization flow.
- 403
forbidden - Check the connection's permissions and allowed filers. More scopes alone may not grant access.
- 404
not_found - Check the resource ID and its owning filer. Batch reads report missing IDs as documented.
- 422
validation_failed - Correct the reported validation issues before retrying.
- 429
rate_limited - Wait for Retry-After before retrying. Avoid concurrent retries.
- 500
internal_error - Retain request_id; retry with bounded backoff.
- 503
service_unavailable - Retry with bounded backoff.