Generated by API Evangelist
Written by API Evangelist tooling for Procore's API. It is a proposal applied on top of the contract, not a document Procore publishes.
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for Procore REST Document V 2 Controller API
version: 1.0.0
extends: openapi/procore-document-v-2-controller-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-18'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 3
- target: $.paths['/rest/v2.0/companies/{company_id}/projects/{project_id}/viewer_documents/get_or_create'].post
update:
x-apievangelist-phrasing:
intent: Get or create a document for the viewer
effect: read
questions:
- How do I get the essential info for a document so I can open it in the viewer?
- Can I create a document and get its viewer info in one call?
instructions:
- text: Get or create document info for item {item_id} of type {item_type} in project {project_id}, company {company_id}.
slots:
item_id: requestBody.item_id
item_type: requestBody.item_type
project_id: path.project_id
company_id: path.company_id
- text: Create a viewer document for {item_type} {item_id} attached to {attachment_id} in project {project_id}, company {company_id}.
slots:
item_type: requestBody.item_type
item_id: requestBody.item_id
attachment_id: requestBody.attachment_id
project_id: path.project_id
company_id: path.company_id
method: generated
generated: '2026-11-18'
- target: $.paths['/rest/v2.0/companies/{company_id}/projects/{project_id}/viewer_documents/{viewer_doc_id}/viewer_url'].get
update:
x-apievangelist-phrasing:
intent: Open a document in the viewer
effect: read
questions:
- How do I open a document in the viewer for a specific issue?
- Can I get the viewer URL without being redirected?
instructions:
- text: Open viewer document {viewer_doc_id} in project {project_id}, company {company_id}.
slots:
viewer_doc_id: path.viewer_doc_id
project_id: path.project_id
company_id: path.company_id
- text: Resolve the viewer URL for document {viewer_doc_id} in project {project_id}, company {company_id}, issue {issue_id}.
slots:
viewer_doc_id: path.viewer_doc_id
project_id: path.project_id
company_id: path.company_id
issue_id: query.issue_id
method: generated
generated: '2026-11-18'
- target: $.paths['/rest/v2.0/companies/{company_id}/projects/{project_id}/viewer_documents'].post
update:
x-apievangelist-phrasing:
intent: Find or create an annotated document
effect: read
questions:
- How do I create an annotated document where markups can be added?
- Can I find an annotated document by its markup context?
instructions:
- text: Find or create an annotated document for {item_type} {item_id} in project {project_id}, company {company_id}.
slots:
item_type: requestBody.item_type
item_id: requestBody.item_id
project_id: path.project_id
company_id: path.company_id
- text: Create an annotated document for {item_type} {item_id} in project {project_id}, company {company_id} with markup context {markup_context}.
slots:
item_type: requestBody.item_type
item_id: requestBody.item_id
project_id: path.project_id
company_id: path.company_id
markup_context: query.markup_context
method: generated
generated: '2026-11-18'
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.