The schema for the envelope creation endpoint allows the addition of an envelope attachment. However, adding one at envelope creation time does not work. The envelope is created, but the attachment is not (as confirmed by querying the API for envelope attachments with the envelope ID).
If I first create the envelope, then add the attachment with the exact same attachment properties, the attachment gets created as expected. Is this a bug? If not, why put envelope attachments in the envelope creation request schema?
Also, some of the fields are very confusing in their behavior and in their descriptions in the documentation. I’m hoping someone may have some insight to a few of them.
AttachmentId - If an attachmentId is provided to create the attachment via the envelope attachments create endpoint, a different, unique ID is returned when querying for it. Why give the ability to provide an ID if it changes regardless of what’s provided?
Label - What does this field actually do? The documentation mentions that potential values include ‘eventNotifications’ which is a list of event statuses. The field is a string, how can this be a list of values? Does giving the label some magic string value cause any downstream behavior? If this is just a label then the examples in the docs seem to just muddy the water.
AttachmentType - Nowhere in the documentation am I able to find what this is referring to. It seems to accept any value without validation. Is this just a reference for consumers of the attachment to know how to decode the base64 encoded document string in the data field?
Access Control - Just some feedback that it would be nice to call out that the default value appears to be ‘Sender’ unless you specify otherwise.
Lastly, I want to consume the attachment via a connect event. I’ve updated the connect configuration to include attachments, but the attachment data isn’t returned in the event - only the ID of the attachment. Is this intended behavior? I was expected to get the data string back, similar to how the document data is returned in the response.
Question
Envelope attachments - confusing documentation and unexpected behavior

Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Sign up
Already have an account? Login
You can login or register as either a Docusign customer or developer. If you don’t already have a Docusign customer or developer account, you can create one for free when registering.
Customer Login/Registration Developer Login/RegistrationJoin the Docusign Community by logging in with your Docusign developer or customer account credentials.
Don’t have an account? You can create a free one when registering.
Note: Partner-specific logins are not available yet. Partners should log in as either a customer or developer
Docusign Community
You can login or register as either a Docusign customer or developer. If you don’t already have a Docusign customer or developer account, you can create one for free when registering.
Customer Login/Registration Developer Login/RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.