---
updatedAt: 2026-04-21T01:30:12.000Z
agentTools:
  projectIndex: https://developers.jasper.ai/llms.txt
---

# Retrieve document by ID

Retrieve a specific document in your workspace by ID

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/v1/documents/{documentId}": {
      "get": {
        "description": "Retrieve a specific document in your workspace by ID",
        "operationId": "getDocumentById",
        "parameters": [
          {
            "name": "documentId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Retrieve document by ID",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User is not a member of the workspace."
          },
          "404": {
            "description": "Not found. May have an incorrect URL path."
          },
          "500": {
            "description": "Internal server error. Unable to get specified document."
          }
        },
        "security": [
          {
            "X-API-Key": []
          },
          {
            "oauth2": [
              "user"
            ]
          }
        ],
        "summary": "Retrieve document by ID",
        "tags": [
          "Documents"
        ]
      }
    }
  },
  "info": {
    "title": "Jasper API",
    "description": "Jasper API",
    "version": "1.0",
    "contact": {}
  },
  "tags": [
    {
      "name": "Documents",
      "description": ""
    }
  ],
  "servers": [
    {
      "url": "https://api.jasper.ai"
    }
  ],
  "components": {
    "securitySchemes": {
      "X-API-Key": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Workspace authentication using API key tokens in the X-API-Key header."
      },
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://api.jasper.ai/oauth2/authorize",
            "tokenUrl": "https://api.jasper.ai/oauth2/token",
            "refreshUrl": "https://api.jasper.ai/oauth2/token",
            "scopes": {
              "user:read": "Read user information",
              "user": "Read and write user information"
            }
          }
        },
        "description": "User-level authentication using OAuth bearer tokens in the Authorization header."
      }
    },
    "schemas": {
      "DocumentsData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the document",
            "example": "doc_073D2D49094A4AED991A47B614522579"
          },
          "content": {
            "type": "string",
            "description": "The content of the document",
            "example": "This is the content of the document."
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "description": "The creation date of the document",
            "example": "2023-01-01T12:00:00.000Z"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "description": "The last updated date of the document",
            "example": "2023-01-02T12:00:00.000Z"
          },
          "name": {
            "type": "string",
            "description": "The name of the document",
            "example": "My Document"
          },
          "status": {
            "type": "string",
            "description": "The status of the document",
            "example": "active"
          },
          "userId": {
            "type": "string",
            "description": "The user Id associated with the workspace",
            "example": "usr_535B1EC15F5F41EAB1B400E9ED4077B6"
          },
          "projectId": {
            "type": "string",
            "description": "The ID of the project the document is associated with, if any. Documents created before project association was supported may have this field empty.",
            "example": "prj_E8F0457A95B04D87A11F6B1DD6AA2356"
          },
          "appUrl": {
            "type": "string",
            "description": "The client URL to open the document in the Jasper app. Jasper has no page for a document on its own, so the link opens the project that contains it and selects the document within it. Null when the document does not belong to a project, because there is nowhere in the app to open it.",
            "example": "https://app.jasper.ai/canvas/edit/2efa3e90-34ff-4a61-a251-0d8f93ce0be3?activeNode=962e4d4c-ffdc-4c7a-83e3-8f4e715004cf",
            "nullable": true
          }
        },
        "required": [
          "id",
          "content",
          "name",
          "status",
          "userId",
          "appUrl"
        ]
      },
      "DocumentResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "example": "bce766ea-a4ef-48e5-9da1-d9602bfecf2d"
          },
          "resource": {
            "type": "string",
            "example": "documents"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentsData"
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "metrics-enabled": false
  }
}
```