Stay organized with collectionsSave and categorize content based on your preferences.
Gets a document. Returns NOT_FOUND if the document does not exist.
HTTP request
POST https://contentwarehouse.googleapis.com/v1/{name}:get
Path parameters
Parameters
name
string
Required. The name of the document to retrieve. Format: projects/{projectNumber}/locations/{location}/documents/{documentId} or projects/{projectNumber}/locations/{location}/documents/referenceId/{referenceId}. It takes the formprojects/{project}/locations/{location}/documents/{document}.
Request body
The request body contains data with the following structure:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-08 UTC."],[[["\u003cp\u003eRetrieves a document specified by its name, returning \u003ccode\u003eNOT_FOUND\u003c/code\u003e if the document does not exist.\u003c/p\u003e\n"],["\u003cp\u003eThe request uses a \u003ccode\u003ePOST\u003c/code\u003e method to the specified URL endpoint, including the document's name as a path parameter in the format \u003ccode\u003eprojects/{projectNumber}/locations/{location}/documents/{documentId}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include metadata, which is an object detailing end-user information for access control purposes.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful retrieval returns a \u003ccode\u003eDocument\u003c/code\u003e instance in the response body, and the request requires OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe user must have the \u003ccode\u003econtentwarehouse.documents.get\u003c/code\u003e IAM permission on the requested resource to get the document.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.documents.get\n\nGets a document. Returns NOT_FOUND if the document does not exist.\n\n### HTTP request\n\n`POST https://contentwarehouse.googleapis.com/v1/{name}:get`\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Document](/document-warehouse/docs/reference/rest/v1/Document).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:\n\n- `contentwarehouse.documents.get`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]