Document Catalog

Upload Document URL

POST
Upload a document using its URL.

Request

This endpoint expects an object.
documentUrl
stringRequired
The URL for the document you want to upload. Credal will automatically connect to source systems like Google Drive, Office 365, Confluence, etc. to fetch and upload the document contents.
uploadAsUserEmail
stringOptional
The user email to upload this document for. This user will be the owner of the document. User must be a collaborator on the API key.
customMetadata
anyOptional
Optional JSON representing any custom metdata for this document
collectionId
stringOptional
If specified, document will also be added to a particular document collection

Response

This endpoint returns an object
documentId
UUID
POST
1curl -X POST https://api.credal.ai/api/v0/catalog/uploadDocumentUrl \
2 -H "Authorization: Bearer <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "documentUrl": "https://docs.google.com/document/d/170NrBm0Do7gdzvr54UvyslPVWkQFOA0lgNycFmdZJQr"
6}'
200
Successful
1{
2 "documentId": "82e4b12a-6990-45d4-8ebd-85c00e030c24"
3}