POST
/
v2
/
export
/
google-docs
curl --request POST \
  --url https://api.usecloudpress.com/v2/export/google-docs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<string>' \
  --form 'options={
  "autoMapDocumentProperties": true,
  "conversion": {
    "destination": "<any>",
    "source": "<any>"
  },
  "destination": 123,
  "destinationReference": "<string>",
  "fieldMappings": {},
  "webhooks": [
    "<string>"
  ]
}'
{
  "id": "<string>",
  "outputDocuments": [
    {
      "links": [
        {
          "description": "<string>",
          "title": "<string>",
          "url": "<string>"
        }
      ],
      "title": "<string>"
    }
  ],
  "queuedAt": "2023-11-07T05:31:56Z",
  "status": "queued",
  "summary": "<string>",
  "type": "<string>"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
string
required

The JSON content of the Google Doc that must be exported. Can be retrieved via the Google Docs API.

options
object
required

Options for the export which specifies details such as the connection the content must be exported to, the format of the content, etc.

Response

200 - application/json
id
string

The ID of the job.

outputDocuments
object[]

The documents that were created by this job.

queuedAt
string

The date and time that the job was queued for processing.

status
enum<string>

The status of the job. Possible values:

  • queued - The job has been queued and is waiting to be processed.`
  • processing - The job is being processed.`
  • done - The job has completed successfully.
  • error - The job has completed with errors.
Available options:
queued,
processing,
done,
error
summary
string

Summary description of the job.

type
string

The type of job