Document Attachments
Create Document Attachment
Creates an attachment for a particular document
post/public/v1/documents/{id}/attachments
Request
- Base URLhttps://api.pandadoc.com
- Auth
- API key in header Authorization
- or OAuth 2Authorization codehttps://app.pandadoc.com/oauth2/authorizeToken URLhttps://api.pandadoc.com/oauth2/access_token
- TypeScripthttps://skmtc.dev/pandadoc/apis/pandadoc-public-api/docs/public/v1/documents/:id/attachments/post.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Document UUID
Request body
Example request
{
"source": "https://is3-ssl.mzstatic.com/1e7fbd74-d10c-8e3a-63c3-0beb3ea231a5/512x512bb.jpg",
"name": "Additional agreement"
}Response
OK
Example response
{
"uuid": "5a2df796-6c65-492b-955c-5709229a89f7",
"date_created": "2021-10-27T20:54:18.757496Z",
"created_by": {
"id": "WbAzFZFMgXHnoQREADTdnE",
"email": "test_user@mail.com",
"first_name": "John",
"last_name": "Smith",
"avatar": "https://pd-live-media.s3.amazonaws.com/users/000GTSGwJw000L2KZqc000/avatar.jpg"
},
"name": "AttachedPhoto.jpg"
}Changes
No recorded changes to this operation across all 2 revisions of this API.