Skip to main content
Version: v2.0

Get document content

Download a document's raw content.

HTTP request

GET /api/now/v1/documents/{document_sys_id}/content

Path parameters

NameDescription
document_sys_idDocument sys_id

Query parameters

None.

Request body

Don't supply a request body for this method.

Response

[]byte — the raw file content, not an envelope.

Example

response, err := client.Now().Documents().Content("{documentSysID}").Get(ctx, nil)
if err != nil {
log.Fatal(err)
}
Was this page helpful?