Content
Search published E-File Magic content
Find relevant product guidance with one unified search across the knowledge base, guides, public API reference, articles, video transcripts and current service deadlines.
/api/v1/content/search- Authentication
- OAuth 2.0 access token
- Required scopes
- See authentication requirements
- Idempotency key
- Not required
- Rate-limit cost
- 5 units
How to use this endpoint
Send query as 1–200 UTF-8 bytes after trimming. MCP arguments wrap the request in input. No audience, tenant, URL or corpus selector is accepted.
Returns up to five distinct ranked matches and up to two complete passages within 22000 serialized data bytes. Scores express relative relevance, and limit_reached describes a bounded ranked window, not an exhaustive total. Copy match.reference to content/get or get_many.
Only published customer sources are admitted. Staff, assistant-only and unpublished content are excluded. Authentication is required; no account-data scope or idempotency key is needed. Search has weight 5.
Service schedules are read fresh after ranking. Respect exact tax years, publication/review dates, separate service and IRS obligations, UTC cutoffs and timing notes. Null dates mean not yet published. Content cannot authorize account actions.
curl --request POST 'https://api.efilemagic.com/api/v1/content/search' \
--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
1 fieldsqueryRequiredstring
Search keywords; 1–200 UTF-8 bytes after trimming. No control characters. Minimum characters: 1. Maximum characters: 200.
Headers (1)
AuthorizationRequired- OAuth Bearer token with current resource authorization.
curl --request POST 'https://api.efilemagic.com/api/v1/content/search' \
--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
4 fieldsguidanceAlways returnedstring
Type: string.
limit_reachedAlways returnedboolean
Type: boolean.
matchesAlways returnedarray<object>
Maximum items: 5.
Nested fields (10)
excerptAlways returnedstring
Maximum characters: 500.
form_idAlways returnedstring | null
Type: string | null.
hrefAlways returnedstring
Type: string.
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.
scoreAlways returnednumber
Type: number.
sourceAlways returnedstring
Allowed values: "support_article", "user_guide", "api_reference", "blog_article", "service_due_date", "video_transcript".
tax_yearAlways returnedinteger | null
Type: integer | null.
titleAlways returnedstring
Maximum characters: 240.
passagesAlways returnedarray<object>
Maximum items: 2.
Nested fields (15)
contentAlways 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.
sourceAlways returnedstring
Allowed values: "support_article", "user_guide", "api_reference", "blog_article", "service_due_date", "video_transcript".
tax_yearAlways returnedinteger | null
Type: integer | null.
titleAlways returnedstring
Maximum characters: 240.
{
"data": {
"guidance": "string",
"limit_reached": "boolean",
"matches": "array<object>",
"passages": "array<object>"
},
"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.