GraphQL API Reference
Welcome to the Anvil GraphQL API reference! This reference includes the complete set of GraphQL types, queries, mutations, and their parameters for e-sign packets, workflows, PDF filling, and PDF generation. For more tutorial-oriented API documentation, please check out our API Guide.
Learn how to authenticate to the API in the Getting Started guide.
Anvil API support: support@useanvil.com
Schema SDL: https://app.useanvil.com/graphql/sdl
Terms of Service: https://www.useanvil.com/terms
API Endpoints
Production:
https://graphql.useanvil.com
Queries
cast
Cast
. A Cast
is a PDF Template. See our
terminology guide for more info Example
Query
query cast($eid: String!) {
cast(eid: $eid) {
id
eid
type
name
title
isTemplate
exampleData
fieldInfo
config
organization {
...OrganizationFragment
}
versionNumber
parentCast {
...CastFragment
}
createdAt
updatedAt
archivedAt
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
query cast($eid: String!) {
cast(eid: $eid) {
id
eid
type
name
title
isTemplate
exampleData
fieldInfo
config
organization {
...OrganizationFragment
}
versionNumber
parentCast {
...CastFragment
}
createdAt
updatedAt
archivedAt
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
Response
{
"data": {
"cast": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"type": "application/pdf",
"name": "Cast Name",
"title": "Cast Title",
"isTemplate": false,
"exampleData": {},
"fieldInfo": {},
"config": {},
"organization": Organization,
"versionNumber": 123,
"parentCast": Cast,
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2021-11-04T21:19:02.316Z"
}
}
}
currentUser
currentUser
query is useful to fetch objects in your organization. e.g. your Organization
, its Weld
s, etc Example
Query
query currentUser {
currentUser {
id
eid
email
name
firstName
lastName
role
verifiedEmail
preferences {
...UserPreferencesFragment
}
organizations {
...OrganizationFragment
}
organizationUsers {
...OrganizationUserFragment
}
createdAt
updatedAt
extra
numSentEtchPackets
}
}
query currentUser {
currentUser {
id
eid
email
name
firstName
lastName
role
verifiedEmail
preferences {
...UserPreferencesFragment
}
organizations {
...OrganizationFragment
}
organizationUsers {
...OrganizationUserFragment
}
createdAt
updatedAt
extra
numSentEtchPackets
}
}
Response
{
"data": {
"currentUser": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"email": "user@domain.com",
"name": "User Name",
"firstName": "Bobby",
"lastName": "Jones",
"role": "user",
"verifiedEmail": false,
"preferences": UserPreferences,
"organizations": [Organization],
"organizationUsers": [OrganizationUser],
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"extra": {},
"numSentEtchPackets": 987
}
}
}
etchPacket
EtchPacket
. An EtchPacket
represents a signature packet containing PDFs, signers, signed documents. This is the result of createEtchPacket
. See the
e-signature API guide for more info Example
Query
query etchPacket($eid: String!) {
etchPacket(eid: $eid) {
id
eid
name
status
isTest
containsFillData
payload
numberRemainingSigners
detailsURL
webhookURL
organization {
...OrganizationFragment
}
documentGroup {
...DocumentGroupFragment
}
etchTemplate {
...EtchTemplateFragment
}
userUploads {
...UserUploadFragment
}
etchLogEvents {
...EtchLogFragment
}
webhookLogs {
...WebhookLogFragment
}
createdAt
updatedAt
archivedAt
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
query etchPacket($eid: String!) {
etchPacket(eid: $eid) {
id
eid
name
status
isTest
containsFillData
payload
numberRemainingSigners
detailsURL
webhookURL
organization {
...OrganizationFragment
}
documentGroup {
...DocumentGroupFragment
}
etchTemplate {
...EtchTemplateFragment
}
userUploads {
...UserUploadFragment
}
etchLogEvents {
...EtchLogFragment
}
webhookLogs {
...WebhookLogFragment
}
createdAt
updatedAt
archivedAt
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
Response
{
"data": {
"etchPacket": {
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "EtchPacket Name",
"status": "completed",
"isTest": true,
"containsFillData": false,
"payload": {
"myPDFId": {
"textColor": #000000,
"data": {"email": hello@example.com}
}
},
"numberRemainingSigners": 123,
"detailsURL": "https://app.useanvil.com/org/my-org/etch/nA1jH49FVUWrrE60hMbi",
"webhookURL": "https://yoursite.com/webhooks/anvil",
"organization": Organization,
"documentGroup": DocumentGroup,
"etchTemplate": EtchTemplate,
"userUploads": [UserUpload],
"etchLogEvents": [EtchLog],
"webhookLogs": [WebhookLog],
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2021-11-04T21:19:02.316Z"
}
}
}
forge
Fetch a single Forge
. You must specify both the organizationSlug
and eidOrSlug
to fetch a Forge
with this query.
A Forge
holds configuration for a single webform. A Forge
defines a webform's fields, the page fields are on, their types, webform logic, etc. Each Forge will be a member of only one Weld
(Workflow). See our
terminology guide for more info.
A better way to fetch Forge
s is via the weld
query. For example:
weld (eid: weldEid) {
forges {
eid
slug
name
}
}
Example
Query
query forge($organizationSlug: String!, $eidOrSlug: String!) {
forge(organizationSlug: $organizationSlug, eidOrSlug: $eidOrSlug) {
id
eid
name
slug
isRequired
config
fieldInfo
weld {
...WeldFragment
}
organization {
...OrganizationFragment
}
userUploads {
...UserUploadFragment
}
versionNumber
createdAt
updatedAt
archivedAt
examplePayload
}
}
Variables
{
"organizationSlug": "organization-slug",
"eidOrSlug": "kQp2qd9FVUWrrE60hMbi"
}
query forge($organizationSlug: String!, $eidOrSlug: String!) {
forge(organizationSlug: $organizationSlug, eidOrSlug: $eidOrSlug) {
id
eid
name
slug
isRequired
config
fieldInfo
weld {
...WeldFragment
}
organization {
...OrganizationFragment
}
userUploads {
...UserUploadFragment
}
versionNumber
createdAt
updatedAt
archivedAt
examplePayload
}
}
{
"organizationSlug": "organization-slug",
"eidOrSlug": "kQp2qd9FVUWrrE60hMbi"
}
Response
{
"data": {
"forge": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Forge Name",
"slug": "forge-name",
"isRequired": true,
"config": {},
"fieldInfo": {},
"weld": Weld,
"organization": Organization,
"userUploads": [UserUpload],
"versionNumber": 123,
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2022-05-04T21:19:02.316Z",
"examplePayload": {}
}
}
}
organization
Fetch a single Organization
. You obviously will only be able to access organizations you are a part of.
A better way to fetch this information is via the currentUser
query. For example:
currentUser {
organizations {
eid
slug
name
}
}
Example
Query
query organization($organizationSlug: String!) {
organization(organizationSlug: $organizationSlug) {
id
eid
name
logo
logoURL
parentOrganization {
...OrganizationFragment
}
billingEmail
supportEmail
slug
users {
...UserFragment
}
adminUsers {
...UserFragment
}
organizationUsers {
...OrganizationUserFragment
}
organizationUserInvites {
...OrganizationUserInviteFragment
}
isPersonal
isInternal
isSubscribed
useTestSignatureProvider
config
createdAt
updatedAt
welds {
...WeldFragment
}
etchTemplates {
...EtchTemplateFragment
}
etchPackets {
...EtchPacketPageFragment
}
weldGroups {
...WeldGroupFragment
}
forges {
...ForgeFragment
}
forgeMaps {
...ForgeMapFragment
}
casts {
...CastFragment
}
paymentMethods {
...PaymentMethodFragment
}
webhook {
...WebhookFragment
}
webhookActions {
...WebhookActionFragment
}
webhookLogs {
...WebhookLogPageFragment
}
childOrganizations {
...OrganizationFragment
}
subscribedPlanFeatures
subscriptionActivity
currentInvoice {
...InvoiceFragment
}
totalUsedUnits
weldCompleteWebhookStats
weldCompleteStats
etchCompleteStats
remainingSubmissions
remainingEtchCompletions
signatureProviderType
availableSignatureProviderTypes
}
}
Variables
{
"organizationSlug": "organization-slug"
}
query organization($organizationSlug: String!) {
organization(organizationSlug: $organizationSlug) {
id
eid
name
logo
logoURL
parentOrganization {
...OrganizationFragment
}
billingEmail
supportEmail
slug
users {
...UserFragment
}
adminUsers {
...UserFragment
}
organizationUsers {
...OrganizationUserFragment
}
organizationUserInvites {
...OrganizationUserInviteFragment
}
isPersonal
isInternal
isSubscribed
useTestSignatureProvider
config
createdAt
updatedAt
welds {
...WeldFragment
}
etchTemplates {
...EtchTemplateFragment
}
etchPackets {
...EtchPacketPageFragment
}
weldGroups {
...WeldGroupFragment
}
forges {
...ForgeFragment
}
forgeMaps {
...ForgeMapFragment
}
casts {
...CastFragment
}
paymentMethods {
...PaymentMethodFragment
}
webhook {
...WebhookFragment
}
webhookActions {
...WebhookActionFragment
}
webhookLogs {
...WebhookLogPageFragment
}
childOrganizations {
...OrganizationFragment
}
subscribedPlanFeatures
subscriptionActivity
currentInvoice {
...InvoiceFragment
}
totalUsedUnits
weldCompleteWebhookStats
weldCompleteStats
etchCompleteStats
remainingSubmissions
remainingEtchCompletions
signatureProviderType
availableSignatureProviderTypes
}
}
{
"organizationSlug": "organization-slug"
}
Response
{
"data": {
"organization": {
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Organization Name",
"logo": {},
"logoURL": "https://app.useanvil.com/uploads/nA1jH49FVUWrrE60hMbi.png",
"parentOrganization": Organization,
"billingEmail": "user@domain.com",
"supportEmail": "user@domain.com",
"slug": "organization-name",
"users": [User],
"adminUsers": [User],
"organizationUsers": [OrganizationUser],
"organizationUserInvites": [OrganizationUserInvite],
"isPersonal": false,
"isInternal": false,
"isSubscribed": false,
"useTestSignatureProvider": true,
"config": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"welds": [Weld],
"etchTemplates": [EtchTemplate],
"etchPackets": EtchPacketPage,
"weldGroups": [WeldGroup],
"forges": [Forge],
"forgeMaps": [ForgeMap],
"casts": [Cast],
"paymentMethods": [PaymentMethod],
"webhook": Webhook,
"webhookActions": [WebhookAction],
"webhookLogs": WebhookLogPage,
"childOrganizations": [Organization],
"subscribedPlanFeatures": {},
"subscriptionActivity": {},
"currentInvoice": Invoice,
"totalUsedUnits": 987,
"weldCompleteWebhookStats": {},
"weldCompleteStats": {},
"etchCompleteStats": {},
"remainingSubmissions": {},
"remainingEtchCompletions": {},
"signatureProviderType": "abc123",
"availableSignatureProviderTypes": ["abc123"]
}
}
}
signer
Fetches a single Signer
.
A better way to fetch signers is via a DocumentGroup
object. For example, use the etchPacket
or weldData
query, then dig down to the signers in your query
Example
Query
query signer($eid: String!, $token: String!) {
signer(eid: $eid, token: $token) {
id
eid
aliasId
status
provider
name
email
routingOrder
signActionType
user {
...UserFragment
}
submission {
...SubmissionFragment
}
documentGroup {
...DocumentGroupFragment
}
signerTokens {
...SignerTokenFragment
}
createdAt
updatedAt
completedAt
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"token": "xyz789"
}
query signer($eid: String!, $token: String!) {
signer(eid: $eid, token: $token) {
id
eid
aliasId
status
provider
name
email
routingOrder
signActionType
user {
...UserFragment
}
submission {
...SubmissionFragment
}
documentGroup {
...DocumentGroupFragment
}
signerTokens {
...SignerTokenFragment
}
createdAt
updatedAt
completedAt
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"token": "xyz789"
}
Response
{
"data": {
"signer": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"aliasId": "signer1",
"status": "sent",
"provider": "etch",
"name": "Signer Name",
"email": "user@domain.com",
"routingOrder": 987,
"signActionType": "email",
"user": User,
"submission": Submission,
"documentGroup": DocumentGroup,
"signerTokens": [SignerToken],
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"completedAt": "2021-11-04T21:19:02.316Z"
}
}
}
submission
Fetches a single Submission
. A Submission
holds data submitted to a webform. See our
terminology guide for more info.
A better way to fetch submissions is via the weldData
query. For example:
weldData (eid: weldDataEid) {
displayTitle
submissions {
eid
resolvedPayload
}
}
Submission
Name | Description |
---|---|
organizationSlug -
String!
|
|
forgeEidOrSlug -
String!
|
|
eid -
String!
|
|
forceCreate -
Boolean
|
|
timezone -
String
|
Example
Query
query submission($organizationSlug: String!, $forgeEidOrSlug: String!, $eid: String!, $forceCreate: Boolean, $timezone: String) {
submission(organizationSlug: $organizationSlug, forgeEidOrSlug: $forgeEidOrSlug, eid: $eid, forceCreate: $forceCreate, timezone: $timezone) {
id
eid
status
resolvedPayload
payload
payloadValue
currentStep
totalSteps
continueURL
weldData {
...WeldDataFragment
}
forge {
...ForgeFragment
}
user {
...UserFragment
}
signer {
...SignerFragment
}
reviewData
completionPercentage
isExcluded
touchedByUser
requestMeta
createdAt
updatedAt
completedAt
}
}
Variables
{
"organizationSlug": "organization-slug",
"forgeEidOrSlug": "kQp2qd9FVUWrrE60hMbi",
"eid": "kQp2qd9FVUWrrE60hMbi",
"forceCreate": false,
"timezone": "America/Los_Angeles"
}
query submission($organizationSlug: String!, $forgeEidOrSlug: String!, $eid: String!, $forceCreate: Boolean, $timezone: String) {
submission(organizationSlug: $organizationSlug, forgeEidOrSlug: $forgeEidOrSlug, eid: $eid, forceCreate: $forceCreate, timezone: $timezone) {
id
eid
status
resolvedPayload
payload
payloadValue
currentStep
totalSteps
continueURL
weldData {
...WeldDataFragment
}
forge {
...ForgeFragment
}
user {
...UserFragment
}
signer {
...SignerFragment
}
reviewData
completionPercentage
isExcluded
touchedByUser
requestMeta
createdAt
updatedAt
completedAt
}
}
{
"organizationSlug": "organization-slug",
"forgeEidOrSlug": "kQp2qd9FVUWrrE60hMbi",
"eid": "kQp2qd9FVUWrrE60hMbi",
"forceCreate": false,
"timezone": "America/Los_Angeles"
}
Response
{
"data": {
"submission": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"status": "in-progress",
"resolvedPayload": {
"email": {
"id": f162136372633517,
"aliasId": email,
"type": email,
"label": Email,
"value": hello@example.com
}
},
"payload": {
"f162136372633517": {
"type": email,
"value": hello@example.com
}
},
"payloadValue": {
"f162136372633517": hello@example.com
},
"currentStep": 987,
"totalSteps": 987,
"continueURL": "https://app.useanvil.com/form/demo/my-form/nA1jH49FVUWrrE60hMbi",
"weldData": WeldData,
"forge": Forge,
"user": User,
"signer": Signer,
"reviewData": {},
"completionPercentage": 33.33,
"isExcluded": false,
"touchedByUser": true,
"requestMeta": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"completedAt": "2022-05-04T21:19:02.316Z"
}
}
}
weld
Fetch a single Weld
. This query is a good way to fetch all of a Workflow's submissions (WeldData
s). See the Weld
's weldDatas
resolver.
Specify either the Weld
's eid
or both the Weld
's slug
and the Weld
's organizationSlug
.
See the Workflow API guide for more information on query usage
Example
Query
query weld($eid: String, $slug: String, $organizationSlug: String) {
weld(eid: $eid, slug: $slug, organizationSlug: $organizationSlug) {
id
eid
slug
name
visibility
config
organization {
...OrganizationFragment
}
hasSigners
forges {
...ForgeFragment
}
casts {
...CastFragment
}
versionNumber
weldGroups {
...WeldGroupFragment
}
weldDatas {
...WeldDataPageFragment
}
signatureProviderType
availableSignatureProviderTypes
remainingSubmissions
createdAt
updatedAt
archivedAt
expiresAt
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"slug": "weld-name",
"organizationSlug": "organization-slug"
}
query weld($eid: String, $slug: String, $organizationSlug: String) {
weld(eid: $eid, slug: $slug, organizationSlug: $organizationSlug) {
id
eid
slug
name
visibility
config
organization {
...OrganizationFragment
}
hasSigners
forges {
...ForgeFragment
}
casts {
...CastFragment
}
versionNumber
weldGroups {
...WeldGroupFragment
}
weldDatas {
...WeldDataPageFragment
}
signatureProviderType
availableSignatureProviderTypes
remainingSubmissions
createdAt
updatedAt
archivedAt
expiresAt
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"slug": "weld-name",
"organizationSlug": "organization-slug"
}
Response
{
"data": {
"weld": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"slug": "weld-name",
"name": "Weld Name",
"visibility": "live",
"config": {},
"organization": Organization,
"hasSigners": true,
"forges": [Forge],
"casts": [Cast],
"versionNumber": 987,
"weldGroups": [WeldGroup],
"weldDatas": WeldDataPage,
"signatureProviderType": "etch",
"availableSignatureProviderTypes": [
[etch, docusign]
],
"remainingSubmissions": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2022-05-04T21:19:02.316Z",
"expiresAt": "2021-11-04T21:19:02.316Z"
}
}
}
weldData
Fetch a single WeldData
(Workflow submission). If you need to fetch all WeldData
s for a given Weld
, see the weld
query.
See the Workflow API guide for more information on query usage
Example
Query
query weldData($eid: String!) {
weldData(eid: $eid) {
id
eid
displayTitle
status
isTest
isExpired
isComplete
isCompleteAndSigned
continueURL
webhookURL
completionPercentage
numberRemainingSigners
payloadCanBeUpdated
hasSigners
nextSigner {
...SignerFragment
}
hasPin
pin
agents
files
excludedFiles
weld {
...WeldFragment
}
submissions {
...SubmissionFragment
}
documentGroup {
...DocumentGroupFragment
}
webhookLogs {
...WebhookLogFragment
}
etchLogEvents {
...EtchLogFragment
}
weldDataLogEvents {
...WeldDataLogFragment
}
userUploads {
...UserUploadFragment
}
forgesRequiringCompletion {
...ForgeFragment
}
weldDataGroup {
...WeldDataGroupFragment
}
createdAt
updatedAt
dataUpdatedAt
expiresAt
archivedAt
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
query weldData($eid: String!) {
weldData(eid: $eid) {
id
eid
displayTitle
status
isTest
isExpired
isComplete
isCompleteAndSigned
continueURL
webhookURL
completionPercentage
numberRemainingSigners
payloadCanBeUpdated
hasSigners
nextSigner {
...SignerFragment
}
hasPin
pin
agents
files
excludedFiles
weld {
...WeldFragment
}
submissions {
...SubmissionFragment
}
documentGroup {
...DocumentGroupFragment
}
webhookLogs {
...WebhookLogFragment
}
etchLogEvents {
...EtchLogFragment
}
weldDataLogEvents {
...WeldDataLogFragment
}
userUploads {
...UserUploadFragment
}
forgesRequiringCompletion {
...ForgeFragment
}
weldDataGroup {
...WeldDataGroupFragment
}
createdAt
updatedAt
dataUpdatedAt
expiresAt
archivedAt
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
Response
{
"data": {
"weldData": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"displayTitle": "Sally's workflow submission",
"status": "in-progress",
"isTest": false,
"isExpired": false,
"isComplete": true,
"isCompleteAndSigned": true,
"continueURL": "https://app.useanvil.com/form/demo/my-form/nA1jH49FVUWrrE60hMbi",
"webhookURL": "https://yoursite.com/webhooks/anvil",
"completionPercentage": 0.2,
"numberRemainingSigners": 123,
"payloadCanBeUpdated": true,
"hasSigners": true,
"nextSigner": Signer,
"hasPin": false,
"pin": "9876",
"agents": {},
"files": [
[
{
"filename": Hello World.pdf,
"name": Hello World,
"type": pdf
}
]
],
"excludedFiles": [
[
{
"filename": Dont Sign Me.pdf,
"name": Don't sign this doc,
"type": pdf
}
]
],
"weld": Weld,
"submissions": [Submission],
"documentGroup": DocumentGroup,
"webhookLogs": [WebhookLog],
"etchLogEvents": [EtchLog],
"weldDataLogEvents": [WeldDataLog],
"userUploads": [UserUpload],
"forgesRequiringCompletion": [Forge],
"weldDataGroup": WeldDataGroup,
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"dataUpdatedAt": "2021-11-04T21:19:02.316Z",
"expiresAt": "2021-11-04T21:19:02.316Z",
"archivedAt": "2021-11-04T21:19:02.316Z"
}
}
}
Mutations
createCast
Cast
Name | Description |
---|---|
organizationEid -
String
|
|
title -
String
|
|
file -
Upload!
|
|
isTemplate -
Boolean
|
Default = true |
Example
Query
mutation createCast($organizationEid: String, $title: String, $file: Upload!, $isTemplate: Boolean) {
createCast(organizationEid: $organizationEid, title: $title, file: $file, isTemplate: $isTemplate) {
id
eid
type
name
title
isTemplate
exampleData
fieldInfo
config
organization {
...OrganizationFragment
}
versionNumber
parentCast {
...CastFragment
}
createdAt
updatedAt
archivedAt
}
}
Variables
{
"organizationEid": "kQp2qd9FVUWrrE60hMbi",
"title": "Cast Title",
"file": Upload,
"isTemplate": true
}
mutation createCast($organizationEid: String, $title: String, $file: Upload!, $isTemplate: Boolean) {
createCast(organizationEid: $organizationEid, title: $title, file: $file, isTemplate: $isTemplate) {
id
eid
type
name
title
isTemplate
exampleData
fieldInfo
config
organization {
...OrganizationFragment
}
versionNumber
parentCast {
...CastFragment
}
createdAt
updatedAt
archivedAt
}
}
{
"organizationEid": "kQp2qd9FVUWrrE60hMbi",
"title": "Cast Title",
"file": Upload,
"isTemplate": true
}
Response
{
"data": {
"createCast": {
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"type": "application/pdf",
"name": "Cast Name",
"title": "Cast Title",
"isTemplate": true,
"exampleData": {},
"fieldInfo": {},
"config": {},
"organization": Organization,
"versionNumber": 987,
"parentCast": Cast,
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2021-11-04T21:19:02.316Z"
}
}
}
createEtchPacket
EtchPacket
Name | Description |
---|---|
name -
String
|
|
organizationEid -
String
|
|
files -
[EtchFile!]
|
|
isDraft -
Boolean
|
|
isTest -
Boolean
|
|
signatureEmailSubject -
String
|
Customizes the email subject on signer emails |
signatureEmailBody -
String
|
Customizes the email body on signer emails |
signatureProvider -
String
|
|
signaturePageOptions -
JSON
|
|
signers -
[JSON!]
|
|
data -
JSON
|
|
webhookURL -
String
|
|
replyToName -
String
|
Overrides the replyTo header on emails sent to signers. By default, this will be your organization name |
replyToEmail -
String
|
Overrides the replyTo header on emails sent to signers. By default, this will be the support email listed in your organization settings |
enableEmails -
JSON
|
Enable all, none, or specific emails for this packet. When enabled, an email type will adhere to the organization settings for that email type. For example, when Possible values: The default is |
createCastTemplatesFromUploads -
Boolean
|
Set to true to save uploaded PDFs to your PDF templates |
duplicateCasts -
Boolean
|
Default = false |
Example
Query
mutation createEtchPacket($name: String, $organizationEid: String, $files: [EtchFile!], $isDraft: Boolean, $isTest: Boolean, $signatureEmailSubject: String, $signatureEmailBody: String, $signatureProvider: String, $signaturePageOptions: JSON, $signers: [JSON!], $data: JSON, $webhookURL: String, $replyToName: String, $replyToEmail: String, $enableEmails: JSON, $createCastTemplatesFromUploads: Boolean, $duplicateCasts: Boolean) {
createEtchPacket(name: $name, organizationEid: $organizationEid, files: $files, isDraft: $isDraft, isTest: $isTest, signatureEmailSubject: $signatureEmailSubject, signatureEmailBody: $signatureEmailBody, signatureProvider: $signatureProvider, signaturePageOptions: $signaturePageOptions, signers: $signers, data: $data, webhookURL: $webhookURL, replyToName: $replyToName, replyToEmail: $replyToEmail, enableEmails: $enableEmails, createCastTemplatesFromUploads: $createCastTemplatesFromUploads, duplicateCasts: $duplicateCasts) {
id
eid
name
status
isTest
containsFillData
payload
numberRemainingSigners
detailsURL
webhookURL
organization {
...OrganizationFragment
}
documentGroup {
...DocumentGroupFragment
}
etchTemplate {
...EtchTemplateFragment
}
userUploads {
...UserUploadFragment
}
etchLogEvents {
...EtchLogFragment
}
webhookLogs {
...WebhookLogFragment
}
createdAt
updatedAt
archivedAt
}
}
Variables
{
"name": "EtchPacket Name",
"organizationEid": "kQp2qd9FVUWrrE60hMbi",
"files": [EtchFile],
"isDraft": false,
"isTest": false,
"signatureEmailSubject": "abc123",
"signatureEmailBody": "xyz789",
"signatureProvider": "xyz789",
"signaturePageOptions": {},
"signers": [{}],
"data": {},
"webhookURL": "https://domain.com/page.html",
"replyToName": "abc123",
"replyToEmail": "user@domain.com",
"enableEmails": {},
"createCastTemplatesFromUploads": true,
"duplicateCasts": false
}
mutation createEtchPacket($name: String, $organizationEid: String, $files: [EtchFile!], $isDraft: Boolean, $isTest: Boolean, $signatureEmailSubject: String, $signatureEmailBody: String, $signatureProvider: String, $signaturePageOptions: JSON, $signers: [JSON!], $data: JSON, $webhookURL: String, $replyToName: String, $replyToEmail: String, $enableEmails: JSON, $createCastTemplatesFromUploads: Boolean, $duplicateCasts: Boolean) {
createEtchPacket(name: $name, organizationEid: $organizationEid, files: $files, isDraft: $isDraft, isTest: $isTest, signatureEmailSubject: $signatureEmailSubject, signatureEmailBody: $signatureEmailBody, signatureProvider: $signatureProvider, signaturePageOptions: $signaturePageOptions, signers: $signers, data: $data, webhookURL: $webhookURL, replyToName: $replyToName, replyToEmail: $replyToEmail, enableEmails: $enableEmails, createCastTemplatesFromUploads: $createCastTemplatesFromUploads, duplicateCasts: $duplicateCasts) {
id
eid
name
status
isTest
containsFillData
payload
numberRemainingSigners
detailsURL
webhookURL
organization {
...OrganizationFragment
}
documentGroup {
...DocumentGroupFragment
}
etchTemplate {
...EtchTemplateFragment
}
userUploads {
...UserUploadFragment
}
etchLogEvents {
...EtchLogFragment
}
webhookLogs {
...WebhookLogFragment
}
createdAt
updatedAt
archivedAt
}
}
{
"name": "EtchPacket Name",
"organizationEid": "kQp2qd9FVUWrrE60hMbi",
"files": [EtchFile],
"isDraft": false,
"isTest": false,
"signatureEmailSubject": "abc123",
"signatureEmailBody": "xyz789",
"signatureProvider": "xyz789",
"signaturePageOptions": {},
"signers": [{}],
"data": {},
"webhookURL": "https://domain.com/page.html",
"replyToName": "abc123",
"replyToEmail": "user@domain.com",
"enableEmails": {},
"createCastTemplatesFromUploads": true,
"duplicateCasts": false
}
Response
{
"data": {
"createEtchPacket": {
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "EtchPacket Name",
"status": "completed",
"isTest": true,
"containsFillData": false,
"payload": {
"myPDFId": {
"textColor": #000000,
"data": {"email": hello@example.com}
}
},
"numberRemainingSigners": 987,
"detailsURL": "https://app.useanvil.com/org/my-org/etch/nA1jH49FVUWrrE60hMbi",
"webhookURL": "https://yoursite.com/webhooks/anvil",
"organization": Organization,
"documentGroup": DocumentGroup,
"etchTemplate": EtchTemplate,
"userUploads": [UserUpload],
"etchLogEvents": [EtchLog],
"webhookLogs": [WebhookLog],
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2022-05-04T21:19:02.316Z"
}
}
}
createForge
Forge
Name | Description |
---|---|
weldEid -
String!
|
|
name -
String!
|
|
slug -
String!
|
|
config -
JSON
|
|
castEid -
String
|
|
castFieldIds -
JSON
|
Example
Query
mutation createForge($weldEid: String!, $name: String!, $slug: String!, $config: JSON, $castEid: String, $castFieldIds: JSON) {
createForge(weldEid: $weldEid, name: $name, slug: $slug, config: $config, castEid: $castEid, castFieldIds: $castFieldIds) {
id
eid
name
slug
isRequired
config
fieldInfo
weld {
...WeldFragment
}
organization {
...OrganizationFragment
}
userUploads {
...UserUploadFragment
}
versionNumber
createdAt
updatedAt
archivedAt
examplePayload
}
}
Variables
{
"weldEid": "kQp2qd9FVUWrrE60hMbi",
"name": "Forge Name",
"slug": "forge-name",
"config": {},
"castEid": "kQp2qd9FVUWrrE60hMbi",
"castFieldIds": {}
}
mutation createForge($weldEid: String!, $name: String!, $slug: String!, $config: JSON, $castEid: String, $castFieldIds: JSON) {
createForge(weldEid: $weldEid, name: $name, slug: $slug, config: $config, castEid: $castEid, castFieldIds: $castFieldIds) {
id
eid
name
slug
isRequired
config
fieldInfo
weld {
...WeldFragment
}
organization {
...OrganizationFragment
}
userUploads {
...UserUploadFragment
}
versionNumber
createdAt
updatedAt
archivedAt
examplePayload
}
}
{
"weldEid": "kQp2qd9FVUWrrE60hMbi",
"name": "Forge Name",
"slug": "forge-name",
"config": {},
"castEid": "kQp2qd9FVUWrrE60hMbi",
"castFieldIds": {}
}
Response
{
"data": {
"createForge": {
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Forge Name",
"slug": "forge-name",
"isRequired": false,
"config": {},
"fieldInfo": {},
"weld": Weld,
"organization": Organization,
"userUploads": [UserUpload],
"versionNumber": 123,
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2022-05-04T21:19:02.316Z",
"examplePayload": {}
}
}
}
createSubmission
Example
Query
mutation createSubmission($forgeEid: String!, $weldDataEid: String!) {
createSubmission(forgeEid: $forgeEid, weldDataEid: $weldDataEid) {
id
eid
status
resolvedPayload
payload
payloadValue
currentStep
totalSteps
continueURL
weldData {
...WeldDataFragment
}
forge {
...ForgeFragment
}
user {
...UserFragment
}
signer {
...SignerFragment
}
reviewData
completionPercentage
isExcluded
touchedByUser
requestMeta
createdAt
updatedAt
completedAt
}
}
Variables
{
"forgeEid": "kQp2qd9FVUWrrE60hMbi",
"weldDataEid": "kQp2qd9FVUWrrE60hMbi"
}
mutation createSubmission($forgeEid: String!, $weldDataEid: String!) {
createSubmission(forgeEid: $forgeEid, weldDataEid: $weldDataEid) {
id
eid
status
resolvedPayload
payload
payloadValue
currentStep
totalSteps
continueURL
weldData {
...WeldDataFragment
}
forge {
...ForgeFragment
}
user {
...UserFragment
}
signer {
...SignerFragment
}
reviewData
completionPercentage
isExcluded
touchedByUser
requestMeta
createdAt
updatedAt
completedAt
}
}
{
"forgeEid": "kQp2qd9FVUWrrE60hMbi",
"weldDataEid": "kQp2qd9FVUWrrE60hMbi"
}
Response
{
"data": {
"createSubmission": {
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"status": "in-progress",
"resolvedPayload": {
"email": {
"id": f162136372633517,
"aliasId": email,
"type": email,
"label": Email,
"value": hello@example.com
}
},
"payload": {
"f162136372633517": {
"type": email,
"value": hello@example.com
}
},
"payloadValue": {
"f162136372633517": hello@example.com
},
"currentStep": 123,
"totalSteps": 123,
"continueURL": "https://app.useanvil.com/form/demo/my-form/nA1jH49FVUWrrE60hMbi",
"weldData": WeldData,
"forge": Forge,
"user": User,
"signer": Signer,
"reviewData": {},
"completionPercentage": 33.33,
"isExcluded": false,
"touchedByUser": true,
"requestMeta": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"completedAt": "2022-05-04T21:19:02.316Z"
}
}
}
createWebhook
Organization
Name | Description |
---|---|
organizationEid -
String
|
|
organizationSlug -
String
|
|
url -
String
|
Example
Query
mutation createWebhook($organizationEid: String, $organizationSlug: String, $url: String) {
createWebhook(organizationEid: $organizationEid, organizationSlug: $organizationSlug, url: $url) {
id
eid
name
logo
logoURL
parentOrganization {
...OrganizationFragment
}
billingEmail
supportEmail
slug
users {
...UserFragment
}
adminUsers {
...UserFragment
}
organizationUsers {
...OrganizationUserFragment
}
organizationUserInvites {
...OrganizationUserInviteFragment
}
isPersonal
isInternal
isSubscribed
useTestSignatureProvider
config
createdAt
updatedAt
welds {
...WeldFragment
}
etchTemplates {
...EtchTemplateFragment
}
etchPackets {
...EtchPacketPageFragment
}
weldGroups {
...WeldGroupFragment
}
forges {
...ForgeFragment
}
forgeMaps {
...ForgeMapFragment
}
casts {
...CastFragment
}
paymentMethods {
...PaymentMethodFragment
}
webhook {
...WebhookFragment
}
webhookActions {
...WebhookActionFragment
}
webhookLogs {
...WebhookLogPageFragment
}
childOrganizations {
...OrganizationFragment
}
subscribedPlanFeatures
subscriptionActivity
currentInvoice {
...InvoiceFragment
}
totalUsedUnits
weldCompleteWebhookStats
weldCompleteStats
etchCompleteStats
remainingSubmissions
remainingEtchCompletions
signatureProviderType
availableSignatureProviderTypes
}
}
Variables
{
"organizationEid": "kQp2qd9FVUWrrE60hMbi",
"organizationSlug": "organization-slug",
"url": "https://domain.com/page.html"
}
mutation createWebhook($organizationEid: String, $organizationSlug: String, $url: String) {
createWebhook(organizationEid: $organizationEid, organizationSlug: $organizationSlug, url: $url) {
id
eid
name
logo
logoURL
parentOrganization {
...OrganizationFragment
}
billingEmail
supportEmail
slug
users {
...UserFragment
}
adminUsers {
...UserFragment
}
organizationUsers {
...OrganizationUserFragment
}
organizationUserInvites {
...OrganizationUserInviteFragment
}
isPersonal
isInternal
isSubscribed
useTestSignatureProvider
config
createdAt
updatedAt
welds {
...WeldFragment
}
etchTemplates {
...EtchTemplateFragment
}
etchPackets {
...EtchPacketPageFragment
}
weldGroups {
...WeldGroupFragment
}
forges {
...ForgeFragment
}
forgeMaps {
...ForgeMapFragment
}
casts {
...CastFragment
}
paymentMethods {
...PaymentMethodFragment
}
webhook {
...WebhookFragment
}
webhookActions {
...WebhookActionFragment
}
webhookLogs {
...WebhookLogPageFragment
}
childOrganizations {
...OrganizationFragment
}
subscribedPlanFeatures
subscriptionActivity
currentInvoice {
...InvoiceFragment
}
totalUsedUnits
weldCompleteWebhookStats
weldCompleteStats
etchCompleteStats
remainingSubmissions
remainingEtchCompletions
signatureProviderType
availableSignatureProviderTypes
}
}
{
"organizationEid": "kQp2qd9FVUWrrE60hMbi",
"organizationSlug": "organization-slug",
"url": "https://domain.com/page.html"
}
Response
{
"data": {
"createWebhook": {
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Organization Name",
"logo": {},
"logoURL": "https://app.useanvil.com/uploads/nA1jH49FVUWrrE60hMbi.png",
"parentOrganization": Organization,
"billingEmail": "user@domain.com",
"supportEmail": "user@domain.com",
"slug": "organization-name",
"users": [User],
"adminUsers": [User],
"organizationUsers": [OrganizationUser],
"organizationUserInvites": [OrganizationUserInvite],
"isPersonal": true,
"isInternal": false,
"isSubscribed": false,
"useTestSignatureProvider": true,
"config": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"welds": [Weld],
"etchTemplates": [EtchTemplate],
"etchPackets": EtchPacketPage,
"weldGroups": [WeldGroup],
"forges": [Forge],
"forgeMaps": [ForgeMap],
"casts": [Cast],
"paymentMethods": [PaymentMethod],
"webhook": Webhook,
"webhookActions": [WebhookAction],
"webhookLogs": WebhookLogPage,
"childOrganizations": [Organization],
"subscribedPlanFeatures": {},
"subscriptionActivity": {},
"currentInvoice": Invoice,
"totalUsedUnits": 123,
"weldCompleteWebhookStats": {},
"weldCompleteStats": {},
"etchCompleteStats": {},
"remainingSubmissions": {},
"remainingEtchCompletions": {},
"signatureProviderType": "abc123",
"availableSignatureProviderTypes": ["abc123"]
}
}
}
createWeld
Weld
Name | Description |
---|---|
organizationEid -
String!
|
|
name -
String!
|
|
slug -
String
|
|
visibility -
String
|
|
draftStep -
String
|
|
config -
JSON
|
|
castEid -
String
|
Example
Query
mutation createWeld($organizationEid: String!, $name: String!, $slug: String, $visibility: String, $draftStep: String, $config: JSON, $castEid: String) {
createWeld(organizationEid: $organizationEid, name: $name, slug: $slug, visibility: $visibility, draftStep: $draftStep, config: $config, castEid: $castEid) {
id
eid
slug
name
visibility
config
organization {
...OrganizationFragment
}
hasSigners
forges {
...ForgeFragment
}
casts {
...CastFragment
}
versionNumber
weldGroups {
...WeldGroupFragment
}
weldDatas {
...WeldDataPageFragment
}
signatureProviderType
availableSignatureProviderTypes
remainingSubmissions
createdAt
updatedAt
archivedAt
expiresAt
}
}
Variables
{
"organizationEid": "kQp2qd9FVUWrrE60hMbi",
"name": "Weld Name",
"slug": "weld-name",
"visibility": "xyz789",
"draftStep": "abc123",
"config": {},
"castEid": "kQp2qd9FVUWrrE60hMbi"
}
mutation createWeld($organizationEid: String!, $name: String!, $slug: String, $visibility: String, $draftStep: String, $config: JSON, $castEid: String) {
createWeld(organizationEid: $organizationEid, name: $name, slug: $slug, visibility: $visibility, draftStep: $draftStep, config: $config, castEid: $castEid) {
id
eid
slug
name
visibility
config
organization {
...OrganizationFragment
}
hasSigners
forges {
...ForgeFragment
}
casts {
...CastFragment
}
versionNumber
weldGroups {
...WeldGroupFragment
}
weldDatas {
...WeldDataPageFragment
}
signatureProviderType
availableSignatureProviderTypes
remainingSubmissions
createdAt
updatedAt
archivedAt
expiresAt
}
}
{
"organizationEid": "kQp2qd9FVUWrrE60hMbi",
"name": "Weld Name",
"slug": "weld-name",
"visibility": "xyz789",
"draftStep": "abc123",
"config": {},
"castEid": "kQp2qd9FVUWrrE60hMbi"
}
Response
{
"data": {
"createWeld": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"slug": "weld-name",
"name": "Weld Name",
"visibility": "live",
"config": {},
"organization": Organization,
"hasSigners": false,
"forges": [Forge],
"casts": [Cast],
"versionNumber": 987,
"weldGroups": [WeldGroup],
"weldDatas": WeldDataPage,
"signatureProviderType": "etch",
"availableSignatureProviderTypes": [
[etch, docusign]
],
"remainingSubmissions": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2022-05-04T21:19:02.316Z",
"expiresAt": "2022-05-04T21:19:02.316Z"
}
}
}
createWeldData
WeldData
Name | Description |
---|---|
weldEid -
String!
|
|
weldDataGroupEid -
String
|
|
isTest -
Boolean
|
Default = false |
webhookURL -
String
|
Example
Query
mutation createWeldData($weldEid: String!, $weldDataGroupEid: String, $isTest: Boolean, $webhookURL: String) {
createWeldData(weldEid: $weldEid, weldDataGroupEid: $weldDataGroupEid, isTest: $isTest, webhookURL: $webhookURL) {
id
eid
displayTitle
status
isTest
isExpired
isComplete
isCompleteAndSigned
continueURL
webhookURL
completionPercentage
numberRemainingSigners
payloadCanBeUpdated
hasSigners
nextSigner {
...SignerFragment
}
hasPin
pin
agents
files
excludedFiles
weld {
...WeldFragment
}
submissions {
...SubmissionFragment
}
documentGroup {
...DocumentGroupFragment
}
webhookLogs {
...WebhookLogFragment
}
etchLogEvents {
...EtchLogFragment
}
weldDataLogEvents {
...WeldDataLogFragment
}
userUploads {
...UserUploadFragment
}
forgesRequiringCompletion {
...ForgeFragment
}
weldDataGroup {
...WeldDataGroupFragment
}
createdAt
updatedAt
dataUpdatedAt
expiresAt
archivedAt
}
}
Variables
{
"weldEid": "kQp2qd9FVUWrrE60hMbi",
"weldDataGroupEid": "kQp2qd9FVUWrrE60hMbi",
"isTest": false,
"webhookURL": "https://domain.com/page.html"
}
mutation createWeldData($weldEid: String!, $weldDataGroupEid: String, $isTest: Boolean, $webhookURL: String) {
createWeldData(weldEid: $weldEid, weldDataGroupEid: $weldDataGroupEid, isTest: $isTest, webhookURL: $webhookURL) {
id
eid
displayTitle
status
isTest
isExpired
isComplete
isCompleteAndSigned
continueURL
webhookURL
completionPercentage
numberRemainingSigners
payloadCanBeUpdated
hasSigners
nextSigner {
...SignerFragment
}
hasPin
pin
agents
files
excludedFiles
weld {
...WeldFragment
}
submissions {
...SubmissionFragment
}
documentGroup {
...DocumentGroupFragment
}
webhookLogs {
...WebhookLogFragment
}
etchLogEvents {
...EtchLogFragment
}
weldDataLogEvents {
...WeldDataLogFragment
}
userUploads {
...UserUploadFragment
}
forgesRequiringCompletion {
...ForgeFragment
}
weldDataGroup {
...WeldDataGroupFragment
}
createdAt
updatedAt
dataUpdatedAt
expiresAt
archivedAt
}
}
{
"weldEid": "kQp2qd9FVUWrrE60hMbi",
"weldDataGroupEid": "kQp2qd9FVUWrrE60hMbi",
"isTest": false,
"webhookURL": "https://domain.com/page.html"
}
Response
{
"data": {
"createWeldData": {
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"displayTitle": "Sally's workflow submission",
"status": "in-progress",
"isTest": false,
"isExpired": false,
"isComplete": false,
"isCompleteAndSigned": true,
"continueURL": "https://app.useanvil.com/form/demo/my-form/nA1jH49FVUWrrE60hMbi",
"webhookURL": "https://yoursite.com/webhooks/anvil",
"completionPercentage": 0.2,
"numberRemainingSigners": 987,
"payloadCanBeUpdated": true,
"hasSigners": true,
"nextSigner": Signer,
"hasPin": true,
"pin": "9876",
"agents": {},
"files": [
[
{
"filename": Hello World.pdf,
"name": Hello World,
"type": pdf
}
]
],
"excludedFiles": [
[
{
"filename": Dont Sign Me.pdf,
"name": Don't sign this doc,
"type": pdf
}
]
],
"weld": Weld,
"submissions": [Submission],
"documentGroup": DocumentGroup,
"webhookLogs": [WebhookLog],
"etchLogEvents": [EtchLog],
"weldDataLogEvents": [WeldDataLog],
"userUploads": [UserUpload],
"forgesRequiringCompletion": [Forge],
"weldDataGroup": WeldDataGroup,
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"dataUpdatedAt": "2021-11-04T21:19:02.316Z",
"expiresAt": "2022-05-04T21:19:02.316Z",
"archivedAt": "2022-05-04T21:19:02.316Z"
}
}
}
destroySubmission
Example
Query
mutation destroySubmission($eid: String!) {
destroySubmission(eid: $eid)
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
mutation destroySubmission($eid: String!) {
destroySubmission(eid: $eid)
}
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
Response
{"data": {"destroySubmission": true}}
disconnectDocusign
Example
Query
mutation disconnectDocusign($organizationSlug: String!) {
disconnectDocusign(organizationSlug: $organizationSlug) {
id
eid
name
logo
logoURL
parentOrganization {
...OrganizationFragment
}
billingEmail
supportEmail
slug
users {
...UserFragment
}
adminUsers {
...UserFragment
}
organizationUsers {
...OrganizationUserFragment
}
organizationUserInvites {
...OrganizationUserInviteFragment
}
isPersonal
isInternal
isSubscribed
useTestSignatureProvider
config
createdAt
updatedAt
welds {
...WeldFragment
}
etchTemplates {
...EtchTemplateFragment
}
etchPackets {
...EtchPacketPageFragment
}
weldGroups {
...WeldGroupFragment
}
forges {
...ForgeFragment
}
forgeMaps {
...ForgeMapFragment
}
casts {
...CastFragment
}
paymentMethods {
...PaymentMethodFragment
}
webhook {
...WebhookFragment
}
webhookActions {
...WebhookActionFragment
}
webhookLogs {
...WebhookLogPageFragment
}
childOrganizations {
...OrganizationFragment
}
subscribedPlanFeatures
subscriptionActivity
currentInvoice {
...InvoiceFragment
}
totalUsedUnits
weldCompleteWebhookStats
weldCompleteStats
etchCompleteStats
remainingSubmissions
remainingEtchCompletions
signatureProviderType
availableSignatureProviderTypes
}
}
Variables
{
"organizationSlug": "organization-slug"
}
mutation disconnectDocusign($organizationSlug: String!) {
disconnectDocusign(organizationSlug: $organizationSlug) {
id
eid
name
logo
logoURL
parentOrganization {
...OrganizationFragment
}
billingEmail
supportEmail
slug
users {
...UserFragment
}
adminUsers {
...UserFragment
}
organizationUsers {
...OrganizationUserFragment
}
organizationUserInvites {
...OrganizationUserInviteFragment
}
isPersonal
isInternal
isSubscribed
useTestSignatureProvider
config
createdAt
updatedAt
welds {
...WeldFragment
}
etchTemplates {
...EtchTemplateFragment
}
etchPackets {
...EtchPacketPageFragment
}
weldGroups {
...WeldGroupFragment
}
forges {
...ForgeFragment
}
forgeMaps {
...ForgeMapFragment
}
casts {
...CastFragment
}
paymentMethods {
...PaymentMethodFragment
}
webhook {
...WebhookFragment
}
webhookActions {
...WebhookActionFragment
}
webhookLogs {
...WebhookLogPageFragment
}
childOrganizations {
...OrganizationFragment
}
subscribedPlanFeatures
subscriptionActivity
currentInvoice {
...InvoiceFragment
}
totalUsedUnits
weldCompleteWebhookStats
weldCompleteStats
etchCompleteStats
remainingSubmissions
remainingEtchCompletions
signatureProviderType
availableSignatureProviderTypes
}
}
{
"organizationSlug": "organization-slug"
}
Response
{
"data": {
"disconnectDocusign": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Organization Name",
"logo": {},
"logoURL": "https://app.useanvil.com/uploads/nA1jH49FVUWrrE60hMbi.png",
"parentOrganization": Organization,
"billingEmail": "user@domain.com",
"supportEmail": "user@domain.com",
"slug": "organization-name",
"users": [User],
"adminUsers": [User],
"organizationUsers": [OrganizationUser],
"organizationUserInvites": [OrganizationUserInvite],
"isPersonal": false,
"isInternal": true,
"isSubscribed": false,
"useTestSignatureProvider": false,
"config": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"welds": [Weld],
"etchTemplates": [EtchTemplate],
"etchPackets": EtchPacketPage,
"weldGroups": [WeldGroup],
"forges": [Forge],
"forgeMaps": [ForgeMap],
"casts": [Cast],
"paymentMethods": [PaymentMethod],
"webhook": Webhook,
"webhookActions": [WebhookAction],
"webhookLogs": WebhookLogPage,
"childOrganizations": [Organization],
"subscribedPlanFeatures": {},
"subscriptionActivity": {},
"currentInvoice": Invoice,
"totalUsedUnits": 987,
"weldCompleteWebhookStats": {},
"weldCompleteStats": {},
"etchCompleteStats": {},
"remainingSubmissions": {},
"remainingEtchCompletions": {},
"signatureProviderType": "xyz789",
"availableSignatureProviderTypes": ["xyz789"]
}
}
}
duplicateCast
Cast
Name | Description |
---|---|
eid -
String!
|
|
organizationEid -
String!
|
|
name -
String
|
|
title -
String
|
Example
Query
mutation duplicateCast($eid: String!, $organizationEid: String!, $name: String, $title: String) {
duplicateCast(eid: $eid, organizationEid: $organizationEid, name: $name, title: $title) {
id
eid
type
name
title
isTemplate
exampleData
fieldInfo
config
organization {
...OrganizationFragment
}
versionNumber
parentCast {
...CastFragment
}
createdAt
updatedAt
archivedAt
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"organizationEid": "kQp2qd9FVUWrrE60hMbi",
"name": "Cast Name",
"title": "Cast Title"
}
mutation duplicateCast($eid: String!, $organizationEid: String!, $name: String, $title: String) {
duplicateCast(eid: $eid, organizationEid: $organizationEid, name: $name, title: $title) {
id
eid
type
name
title
isTemplate
exampleData
fieldInfo
config
organization {
...OrganizationFragment
}
versionNumber
parentCast {
...CastFragment
}
createdAt
updatedAt
archivedAt
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"organizationEid": "kQp2qd9FVUWrrE60hMbi",
"name": "Cast Name",
"title": "Cast Title"
}
Response
{
"data": {
"duplicateCast": {
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"type": "application/pdf",
"name": "Cast Name",
"title": "Cast Title",
"isTemplate": false,
"exampleData": {},
"fieldInfo": {},
"config": {},
"organization": Organization,
"versionNumber": 123,
"parentCast": Cast,
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2021-11-04T21:19:02.316Z"
}
}
}
duplicateWeld
Weld
Name | Description |
---|---|
eid -
String!
|
|
organizationEid -
String!
|
|
visibility -
String
|
|
name -
String
|
|
slug -
String
|
Example
Query
mutation duplicateWeld($eid: String!, $organizationEid: String!, $visibility: String, $name: String, $slug: String) {
duplicateWeld(eid: $eid, organizationEid: $organizationEid, visibility: $visibility, name: $name, slug: $slug) {
id
eid
slug
name
visibility
config
organization {
...OrganizationFragment
}
hasSigners
forges {
...ForgeFragment
}
casts {
...CastFragment
}
versionNumber
weldGroups {
...WeldGroupFragment
}
weldDatas {
...WeldDataPageFragment
}
signatureProviderType
availableSignatureProviderTypes
remainingSubmissions
createdAt
updatedAt
archivedAt
expiresAt
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"organizationEid": "kQp2qd9FVUWrrE60hMbi",
"visibility": "abc123",
"name": "Weld Name",
"slug": "weld-name"
}
mutation duplicateWeld($eid: String!, $organizationEid: String!, $visibility: String, $name: String, $slug: String) {
duplicateWeld(eid: $eid, organizationEid: $organizationEid, visibility: $visibility, name: $name, slug: $slug) {
id
eid
slug
name
visibility
config
organization {
...OrganizationFragment
}
hasSigners
forges {
...ForgeFragment
}
casts {
...CastFragment
}
versionNumber
weldGroups {
...WeldGroupFragment
}
weldDatas {
...WeldDataPageFragment
}
signatureProviderType
availableSignatureProviderTypes
remainingSubmissions
createdAt
updatedAt
archivedAt
expiresAt
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"organizationEid": "kQp2qd9FVUWrrE60hMbi",
"visibility": "abc123",
"name": "Weld Name",
"slug": "weld-name"
}
Response
{
"data": {
"duplicateWeld": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"slug": "weld-name",
"name": "Weld Name",
"visibility": "live",
"config": {},
"organization": Organization,
"hasSigners": true,
"forges": [Forge],
"casts": [Cast],
"versionNumber": 987,
"weldGroups": [WeldGroup],
"weldDatas": WeldDataPage,
"signatureProviderType": "etch",
"availableSignatureProviderTypes": [
[etch, docusign]
],
"remainingSubmissions": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2021-11-04T21:19:02.316Z",
"expiresAt": "2022-05-04T21:19:02.316Z"
}
}
}
expireSignerTokens
Expires all valid SignerTokens
for a specific Signer
. Signers who visit links with expired tokens will be shown a "Token Expired" error, or will be
redirected to your service if there is a redirectURL
set on the signer.
If the Signer
has already completed signing, this mutation will throw an error. If you would like the Signer
to be able to sign again, email signers will need to be notified via sendEtchPacket
, and embedded signers will need a new signing link generated by generateEtchSignURL
Example
Query
mutation expireSignerTokens($signerEid: String!) {
expireSignerTokens(signerEid: $signerEid) {
id
eid
aliasId
status
provider
name
email
routingOrder
signActionType
user {
...UserFragment
}
submission {
...SubmissionFragment
}
documentGroup {
...DocumentGroupFragment
}
signerTokens {
...SignerTokenFragment
}
createdAt
updatedAt
completedAt
}
}
Variables
{
"signerEid": "kQp2qd9FVUWrrE60hMbi"
}
mutation expireSignerTokens($signerEid: String!) {
expireSignerTokens(signerEid: $signerEid) {
id
eid
aliasId
status
provider
name
email
routingOrder
signActionType
user {
...UserFragment
}
submission {
...SubmissionFragment
}
documentGroup {
...DocumentGroupFragment
}
signerTokens {
...SignerTokenFragment
}
createdAt
updatedAt
completedAt
}
}
{
"signerEid": "kQp2qd9FVUWrrE60hMbi"
}
Response
{
"data": {
"expireSignerTokens": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"aliasId": "signer1",
"status": "sent",
"provider": "etch",
"name": "Signer Name",
"email": "user@domain.com",
"routingOrder": 987,
"signActionType": "email",
"user": User,
"submission": Submission,
"documentGroup": DocumentGroup,
"signerTokens": [SignerToken],
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"completedAt": "2021-11-04T21:19:02.316Z"
}
}
}
forgeSubmit
Submits data to a Workflow's webform (a Forge
). You can use this mutation to start a Workflow with data from your system and submit data to an
existing Submission
.
See the Workflow API guide for more information on usage scenarios
Submission
Name | Description |
---|---|
forgeEid -
String!
|
|
weldDataEid -
String
|
|
submissionEid -
String
|
|
payload -
JSON!
|
A Data is additive: you only need to submit data you wish to update |
enforcePayloadValidOnCreate -
Boolean
|
Default = true |
currentStep -
Int
|
|
complete -
Boolean
|
|
isTest -
Boolean
|
Default = false |
timezone -
String
|
|
webhookURL -
String
|
|
groupArrayId -
String
|
|
groupArrayIndex -
Int
|
Example
Query
mutation forgeSubmit($forgeEid: String!, $weldDataEid: String, $submissionEid: String, $payload: JSON!, $enforcePayloadValidOnCreate: Boolean, $currentStep: Int, $complete: Boolean, $isTest: Boolean, $timezone: String, $webhookURL: String, $groupArrayId: String, $groupArrayIndex: Int) {
forgeSubmit(forgeEid: $forgeEid, weldDataEid: $weldDataEid, submissionEid: $submissionEid, payload: $payload, enforcePayloadValidOnCreate: $enforcePayloadValidOnCreate, currentStep: $currentStep, complete: $complete, isTest: $isTest, timezone: $timezone, webhookURL: $webhookURL, groupArrayId: $groupArrayId, groupArrayIndex: $groupArrayIndex) {
id
eid
status
resolvedPayload
payload
payloadValue
currentStep
totalSteps
continueURL
weldData {
...WeldDataFragment
}
forge {
...ForgeFragment
}
user {
...UserFragment
}
signer {
...SignerFragment
}
reviewData
completionPercentage
isExcluded
touchedByUser
requestMeta
createdAt
updatedAt
completedAt
}
}
Variables
{
"forgeEid": "kQp2qd9FVUWrrE60hMbi",
"weldDataEid": "kQp2qd9FVUWrrE60hMbi",
"submissionEid": "kQp2qd9FVUWrrE60hMbi",
"payload": {},
"enforcePayloadValidOnCreate": true,
"currentStep": 987,
"complete": false,
"isTest": false,
"timezone": "America/Los_Angeles",
"webhookURL": "https://domain.com/page.html",
"groupArrayId": "xyz789",
"groupArrayIndex": 987
}
mutation forgeSubmit($forgeEid: String!, $weldDataEid: String, $submissionEid: String, $payload: JSON!, $enforcePayloadValidOnCreate: Boolean, $currentStep: Int, $complete: Boolean, $isTest: Boolean, $timezone: String, $webhookURL: String, $groupArrayId: String, $groupArrayIndex: Int) {
forgeSubmit(forgeEid: $forgeEid, weldDataEid: $weldDataEid, submissionEid: $submissionEid, payload: $payload, enforcePayloadValidOnCreate: $enforcePayloadValidOnCreate, currentStep: $currentStep, complete: $complete, isTest: $isTest, timezone: $timezone, webhookURL: $webhookURL, groupArrayId: $groupArrayId, groupArrayIndex: $groupArrayIndex) {
id
eid
status
resolvedPayload
payload
payloadValue
currentStep
totalSteps
continueURL
weldData {
...WeldDataFragment
}
forge {
...ForgeFragment
}
user {
...UserFragment
}
signer {
...SignerFragment
}
reviewData
completionPercentage
isExcluded
touchedByUser
requestMeta
createdAt
updatedAt
completedAt
}
}
{
"forgeEid": "kQp2qd9FVUWrrE60hMbi",
"weldDataEid": "kQp2qd9FVUWrrE60hMbi",
"submissionEid": "kQp2qd9FVUWrrE60hMbi",
"payload": {},
"enforcePayloadValidOnCreate": true,
"currentStep": 987,
"complete": false,
"isTest": false,
"timezone": "America/Los_Angeles",
"webhookURL": "https://domain.com/page.html",
"groupArrayId": "xyz789",
"groupArrayIndex": 987
}
Response
{
"data": {
"forgeSubmit": {
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"status": "in-progress",
"resolvedPayload": {
"email": {
"id": f162136372633517,
"aliasId": email,
"type": email,
"label": Email,
"value": hello@example.com
}
},
"payload": {
"f162136372633517": {
"type": email,
"value": hello@example.com
}
},
"payloadValue": {
"f162136372633517": hello@example.com
},
"currentStep": 123,
"totalSteps": 987,
"continueURL": "https://app.useanvil.com/form/demo/my-form/nA1jH49FVUWrrE60hMbi",
"weldData": WeldData,
"forge": Forge,
"user": User,
"signer": Signer,
"reviewData": {},
"completionPercentage": 33.33,
"isExcluded": true,
"touchedByUser": true,
"requestMeta": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"completedAt": "2022-05-04T21:19:02.316Z"
}
}
}
generateEtchSignURL
String
Name | Description |
---|---|
signerEid -
String!
|
|
clientUserId -
String!
|
Your id for the person signing: a way to trace this signer back to a user in your system |
Example
Query
mutation generateEtchSignURL($signerEid: String!, $clientUserId: String!) {
generateEtchSignURL(signerEid: $signerEid, clientUserId: $clientUserId)
}
Variables
{
"signerEid": "kQp2qd9FVUWrrE60hMbi",
"clientUserId": "abc123"
}
mutation generateEtchSignURL($signerEid: String!, $clientUserId: String!) {
generateEtchSignURL(signerEid: $signerEid, clientUserId: $clientUserId)
}
{
"signerEid": "kQp2qd9FVUWrrE60hMbi",
"clientUserId": "abc123"
}
Response
{"data": {"generateEtchSignURL": "xyz789"}}
removeEtchPacket
Example
Query
mutation removeEtchPacket($eid: String!) {
removeEtchPacket(eid: $eid)
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
mutation removeEtchPacket($eid: String!) {
removeEtchPacket(eid: $eid)
}
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
Response
{"data": {"removeEtchPacket": true}}
removeWebhook
Example
Query
mutation removeWebhook($eid: String!) {
removeWebhook(eid: $eid) {
id
eid
name
logo
logoURL
parentOrganization {
...OrganizationFragment
}
billingEmail
supportEmail
slug
users {
...UserFragment
}
adminUsers {
...UserFragment
}
organizationUsers {
...OrganizationUserFragment
}
organizationUserInvites {
...OrganizationUserInviteFragment
}
isPersonal
isInternal
isSubscribed
useTestSignatureProvider
config
createdAt
updatedAt
welds {
...WeldFragment
}
etchTemplates {
...EtchTemplateFragment
}
etchPackets {
...EtchPacketPageFragment
}
weldGroups {
...WeldGroupFragment
}
forges {
...ForgeFragment
}
forgeMaps {
...ForgeMapFragment
}
casts {
...CastFragment
}
paymentMethods {
...PaymentMethodFragment
}
webhook {
...WebhookFragment
}
webhookActions {
...WebhookActionFragment
}
webhookLogs {
...WebhookLogPageFragment
}
childOrganizations {
...OrganizationFragment
}
subscribedPlanFeatures
subscriptionActivity
currentInvoice {
...InvoiceFragment
}
totalUsedUnits
weldCompleteWebhookStats
weldCompleteStats
etchCompleteStats
remainingSubmissions
remainingEtchCompletions
signatureProviderType
availableSignatureProviderTypes
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
mutation removeWebhook($eid: String!) {
removeWebhook(eid: $eid) {
id
eid
name
logo
logoURL
parentOrganization {
...OrganizationFragment
}
billingEmail
supportEmail
slug
users {
...UserFragment
}
adminUsers {
...UserFragment
}
organizationUsers {
...OrganizationUserFragment
}
organizationUserInvites {
...OrganizationUserInviteFragment
}
isPersonal
isInternal
isSubscribed
useTestSignatureProvider
config
createdAt
updatedAt
welds {
...WeldFragment
}
etchTemplates {
...EtchTemplateFragment
}
etchPackets {
...EtchPacketPageFragment
}
weldGroups {
...WeldGroupFragment
}
forges {
...ForgeFragment
}
forgeMaps {
...ForgeMapFragment
}
casts {
...CastFragment
}
paymentMethods {
...PaymentMethodFragment
}
webhook {
...WebhookFragment
}
webhookActions {
...WebhookActionFragment
}
webhookLogs {
...WebhookLogPageFragment
}
childOrganizations {
...OrganizationFragment
}
subscribedPlanFeatures
subscriptionActivity
currentInvoice {
...InvoiceFragment
}
totalUsedUnits
weldCompleteWebhookStats
weldCompleteStats
etchCompleteStats
remainingSubmissions
remainingEtchCompletions
signatureProviderType
availableSignatureProviderTypes
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
Response
{
"data": {
"removeWebhook": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Organization Name",
"logo": {},
"logoURL": "https://app.useanvil.com/uploads/nA1jH49FVUWrrE60hMbi.png",
"parentOrganization": Organization,
"billingEmail": "user@domain.com",
"supportEmail": "user@domain.com",
"slug": "organization-name",
"users": [User],
"adminUsers": [User],
"organizationUsers": [OrganizationUser],
"organizationUserInvites": [OrganizationUserInvite],
"isPersonal": true,
"isInternal": true,
"isSubscribed": false,
"useTestSignatureProvider": true,
"config": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"welds": [Weld],
"etchTemplates": [EtchTemplate],
"etchPackets": EtchPacketPage,
"weldGroups": [WeldGroup],
"forges": [Forge],
"forgeMaps": [ForgeMap],
"casts": [Cast],
"paymentMethods": [PaymentMethod],
"webhook": Webhook,
"webhookActions": [WebhookAction],
"webhookLogs": WebhookLogPage,
"childOrganizations": [Organization],
"subscribedPlanFeatures": {},
"subscriptionActivity": {},
"currentInvoice": Invoice,
"totalUsedUnits": 123,
"weldCompleteWebhookStats": {},
"weldCompleteStats": {},
"etchCompleteStats": {},
"remainingSubmissions": {},
"remainingEtchCompletions": {},
"signatureProviderType": "xyz789",
"availableSignatureProviderTypes": ["abc123"]
}
}
}
removeWeldData
Example
Query
mutation removeWeldData($eid: String!) {
removeWeldData(eid: $eid)
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
mutation removeWeldData($eid: String!) {
removeWeldData(eid: $eid)
}
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
Response
{"data": {"removeWeldData": true}}
retryWebhookLog
Example
Query
mutation retryWebhookLog($eid: String!) {
retryWebhookLog(eid: $eid) {
id
eid
action
isError
isRetry
statusCode
millisecondsToFinish
objectEid
rootObjectType
rootObjectURL
objectMetadata
organization {
...OrganizationFragment
}
originalWebhookLog {
...WebhookLogFragment
}
createdAt
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
mutation retryWebhookLog($eid: String!) {
retryWebhookLog(eid: $eid) {
id
eid
action
isError
isRetry
statusCode
millisecondsToFinish
objectEid
rootObjectType
rootObjectURL
objectMetadata
organization {
...OrganizationFragment
}
originalWebhookLog {
...WebhookLogFragment
}
createdAt
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
Response
{
"data": {
"retryWebhookLog": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"action": "weldComplete",
"isError": true,
"isRetry": false,
"statusCode": 123,
"millisecondsToFinish": 987,
"objectEid": "kQp2qd9FVUWrrE60hMbi",
"rootObjectType": "WeldData",
"rootObjectURL": "https://app.useanvil.com/org/my-org/w/my-workflow/iXLRleX92vhwF8cIhsk2",
"objectMetadata": {},
"organization": Organization,
"originalWebhookLog": WebhookLog,
"createdAt": "2022-05-04T21:19:02.462Z"
}
}
}
sendEtchPacket
This will move a draft
EtchPacket
into sent mode (status
== sent
). If the first signer is an email signer, this will kick off an email, with a link to sign their portion of the packet.
You can call this mutation after a packet is sent to "resend" signature emails to your email signers. For example, you can send a new email via sendEtchPacket
if they lose the email, or if they have an email with an expired token. This mutation will always email the first signer who has not yet signed.
When your signers are set up as embedded
signers, they will
not be emailed. You must generate signing URLs via the
generateEtchSignURL
mutation. See
our e-signature guide on embedded signers for more info
Example
Query
mutation sendEtchPacket($eid: String!) {
sendEtchPacket(eid: $eid) {
id
eid
name
status
isTest
containsFillData
payload
numberRemainingSigners
detailsURL
webhookURL
organization {
...OrganizationFragment
}
documentGroup {
...DocumentGroupFragment
}
etchTemplate {
...EtchTemplateFragment
}
userUploads {
...UserUploadFragment
}
etchLogEvents {
...EtchLogFragment
}
webhookLogs {
...WebhookLogFragment
}
createdAt
updatedAt
archivedAt
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
mutation sendEtchPacket($eid: String!) {
sendEtchPacket(eid: $eid) {
id
eid
name
status
isTest
containsFillData
payload
numberRemainingSigners
detailsURL
webhookURL
organization {
...OrganizationFragment
}
documentGroup {
...DocumentGroupFragment
}
etchTemplate {
...EtchTemplateFragment
}
userUploads {
...UserUploadFragment
}
etchLogEvents {
...EtchLogFragment
}
webhookLogs {
...WebhookLogFragment
}
createdAt
updatedAt
archivedAt
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi"
}
Response
{
"data": {
"sendEtchPacket": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "EtchPacket Name",
"status": "completed",
"isTest": true,
"containsFillData": true,
"payload": {
"myPDFId": {
"textColor": #000000,
"data": {"email": hello@example.com}
}
},
"numberRemainingSigners": 987,
"detailsURL": "https://app.useanvil.com/org/my-org/etch/nA1jH49FVUWrrE60hMbi",
"webhookURL": "https://yoursite.com/webhooks/anvil",
"organization": Organization,
"documentGroup": DocumentGroup,
"etchTemplate": EtchTemplate,
"userUploads": [UserUpload],
"etchLogEvents": [EtchLog],
"webhookLogs": [WebhookLog],
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2022-05-04T21:19:02.316Z"
}
}
}
skipSigner
Example
Query
mutation skipSigner($signerEid: String!) {
skipSigner(signerEid: $signerEid) {
id
eid
aliasId
status
provider
name
email
routingOrder
signActionType
user {
...UserFragment
}
submission {
...SubmissionFragment
}
documentGroup {
...DocumentGroupFragment
}
signerTokens {
...SignerTokenFragment
}
createdAt
updatedAt
completedAt
}
}
Variables
{
"signerEid": "kQp2qd9FVUWrrE60hMbi"
}
mutation skipSigner($signerEid: String!) {
skipSigner(signerEid: $signerEid) {
id
eid
aliasId
status
provider
name
email
routingOrder
signActionType
user {
...UserFragment
}
submission {
...SubmissionFragment
}
documentGroup {
...DocumentGroupFragment
}
signerTokens {
...SignerTokenFragment
}
createdAt
updatedAt
completedAt
}
}
{
"signerEid": "kQp2qd9FVUWrrE60hMbi"
}
Response
{
"data": {
"skipSigner": {
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"aliasId": "signer1",
"status": "sent",
"provider": "etch",
"name": "Signer Name",
"email": "user@domain.com",
"routingOrder": 123,
"signActionType": "email",
"user": User,
"submission": Submission,
"documentGroup": DocumentGroup,
"signerTokens": [SignerToken],
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"completedAt": "2021-11-04T21:19:02.316Z"
}
}
}
updateCast
Cast
Name | Description |
---|---|
eid -
String!
|
|
name -
String
|
|
title -
String
|
|
config -
JSON
|
|
configFile -
Upload
|
|
file -
Upload
|
|
isArchived -
Boolean
|
|
versionNumber -
Int
|
Example
Query
mutation updateCast($eid: String!, $name: String, $title: String, $config: JSON, $configFile: Upload, $file: Upload, $isArchived: Boolean, $versionNumber: Int) {
updateCast(eid: $eid, name: $name, title: $title, config: $config, configFile: $configFile, file: $file, isArchived: $isArchived, versionNumber: $versionNumber) {
id
eid
type
name
title
isTemplate
exampleData
fieldInfo
config
organization {
...OrganizationFragment
}
versionNumber
parentCast {
...CastFragment
}
createdAt
updatedAt
archivedAt
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Cast Name",
"title": "Cast Title",
"config": {},
"configFile": Upload,
"file": Upload,
"isArchived": true,
"versionNumber": 123
}
mutation updateCast($eid: String!, $name: String, $title: String, $config: JSON, $configFile: Upload, $file: Upload, $isArchived: Boolean, $versionNumber: Int) {
updateCast(eid: $eid, name: $name, title: $title, config: $config, configFile: $configFile, file: $file, isArchived: $isArchived, versionNumber: $versionNumber) {
id
eid
type
name
title
isTemplate
exampleData
fieldInfo
config
organization {
...OrganizationFragment
}
versionNumber
parentCast {
...CastFragment
}
createdAt
updatedAt
archivedAt
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Cast Name",
"title": "Cast Title",
"config": {},
"configFile": Upload,
"file": Upload,
"isArchived": true,
"versionNumber": 123
}
Response
{
"data": {
"updateCast": {
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"type": "application/pdf",
"name": "Cast Name",
"title": "Cast Title",
"isTemplate": false,
"exampleData": {},
"fieldInfo": {},
"config": {},
"organization": Organization,
"versionNumber": 987,
"parentCast": Cast,
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2022-05-04T21:19:02.316Z"
}
}
}
updateEtchFree
EtchTemplate
Name | Description |
---|---|
etchTemplateEid -
String!
|
|
token -
String!
|
|
isEditing -
Boolean
|
|
name -
String
|
|
ownerName -
String
|
|
ownerEmail -
String
|
|
signers -
JSON
|
|
fields -
[JSON]
|
|
castFields -
[JSON]
|
Example
Query
mutation updateEtchFree($etchTemplateEid: String!, $token: String!, $isEditing: Boolean, $name: String, $ownerName: String, $ownerEmail: String, $signers: JSON, $fields: [JSON], $castFields: [JSON]) {
updateEtchFree(etchTemplateEid: $etchTemplateEid, token: $token, isEditing: $isEditing, name: $name, ownerName: $ownerName, ownerEmail: $ownerEmail, signers: $signers, fields: $fields, castFields: $castFields) {
id
eid
name
isFree
isRepeatable
config
organization {
...OrganizationFragment
}
casts {
...CastFragment
}
etchPackets {
...EtchPacketFragment
}
userUploads {
...UserUploadFragment
}
createdAt
updatedAt
}
}
Variables
{
"etchTemplateEid": "kQp2qd9FVUWrrE60hMbi",
"token": "xyz789",
"isEditing": false,
"name": "EtchTemplate Name",
"ownerName": "xyz789",
"ownerEmail": "user@domain.com",
"signers": {},
"fields": [{}],
"castFields": [{}]
}
mutation updateEtchFree($etchTemplateEid: String!, $token: String!, $isEditing: Boolean, $name: String, $ownerName: String, $ownerEmail: String, $signers: JSON, $fields: [JSON], $castFields: [JSON]) {
updateEtchFree(etchTemplateEid: $etchTemplateEid, token: $token, isEditing: $isEditing, name: $name, ownerName: $ownerName, ownerEmail: $ownerEmail, signers: $signers, fields: $fields, castFields: $castFields) {
id
eid
name
isFree
isRepeatable
config
organization {
...OrganizationFragment
}
casts {
...CastFragment
}
etchPackets {
...EtchPacketFragment
}
userUploads {
...UserUploadFragment
}
createdAt
updatedAt
}
}
{
"etchTemplateEid": "kQp2qd9FVUWrrE60hMbi",
"token": "xyz789",
"isEditing": false,
"name": "EtchTemplate Name",
"ownerName": "xyz789",
"ownerEmail": "user@domain.com",
"signers": {},
"fields": [{}],
"castFields": [{}]
}
Response
{
"data": {
"updateEtchFree": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "EtchTemplate Name",
"isFree": false,
"isRepeatable": false,
"config": {},
"organization": Organization,
"casts": [Cast],
"etchPackets": [EtchPacket],
"userUploads": [UserUpload],
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z"
}
}
}
updateEtchPacket
EtchPacket
Name | Description |
---|---|
eid -
String!
|
|
token -
String
|
|
isArchived -
Boolean
|
|
name -
String
|
|
webhookURL -
String
|
|
payload -
JSON
|
Example
Query
mutation updateEtchPacket($eid: String!, $token: String, $isArchived: Boolean, $name: String, $webhookURL: String, $payload: JSON) {
updateEtchPacket(eid: $eid, token: $token, isArchived: $isArchived, name: $name, webhookURL: $webhookURL, payload: $payload) {
id
eid
name
status
isTest
containsFillData
payload
numberRemainingSigners
detailsURL
webhookURL
organization {
...OrganizationFragment
}
documentGroup {
...DocumentGroupFragment
}
etchTemplate {
...EtchTemplateFragment
}
userUploads {
...UserUploadFragment
}
etchLogEvents {
...EtchLogFragment
}
webhookLogs {
...WebhookLogFragment
}
createdAt
updatedAt
archivedAt
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"token": "abc123",
"isArchived": true,
"name": "EtchPacket Name",
"webhookURL": "https://domain.com/page.html",
"payload": {}
}
mutation updateEtchPacket($eid: String!, $token: String, $isArchived: Boolean, $name: String, $webhookURL: String, $payload: JSON) {
updateEtchPacket(eid: $eid, token: $token, isArchived: $isArchived, name: $name, webhookURL: $webhookURL, payload: $payload) {
id
eid
name
status
isTest
containsFillData
payload
numberRemainingSigners
detailsURL
webhookURL
organization {
...OrganizationFragment
}
documentGroup {
...DocumentGroupFragment
}
etchTemplate {
...EtchTemplateFragment
}
userUploads {
...UserUploadFragment
}
etchLogEvents {
...EtchLogFragment
}
webhookLogs {
...WebhookLogFragment
}
createdAt
updatedAt
archivedAt
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"token": "abc123",
"isArchived": true,
"name": "EtchPacket Name",
"webhookURL": "https://domain.com/page.html",
"payload": {}
}
Response
{
"data": {
"updateEtchPacket": {
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "EtchPacket Name",
"status": "completed",
"isTest": true,
"containsFillData": false,
"payload": {
"myPDFId": {
"textColor": #000000,
"data": {"email": hello@example.com}
}
},
"numberRemainingSigners": 123,
"detailsURL": "https://app.useanvil.com/org/my-org/etch/nA1jH49FVUWrrE60hMbi",
"webhookURL": "https://yoursite.com/webhooks/anvil",
"organization": Organization,
"documentGroup": DocumentGroup,
"etchTemplate": EtchTemplate,
"userUploads": [UserUpload],
"etchLogEvents": [EtchLog],
"webhookLogs": [WebhookLog],
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2022-05-04T21:19:02.316Z"
}
}
}
updateEtchTemplate
EtchTemplate
Name | Description |
---|---|
eid -
String!
|
|
isRepeatable -
Boolean
|
|
name -
String
|
|
config -
JSON
|
Example
Query
mutation updateEtchTemplate($eid: String!, $isRepeatable: Boolean, $name: String, $config: JSON) {
updateEtchTemplate(eid: $eid, isRepeatable: $isRepeatable, name: $name, config: $config) {
id
eid
name
isFree
isRepeatable
config
organization {
...OrganizationFragment
}
casts {
...CastFragment
}
etchPackets {
...EtchPacketFragment
}
userUploads {
...UserUploadFragment
}
createdAt
updatedAt
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"isRepeatable": false,
"name": "EtchTemplate Name",
"config": {}
}
mutation updateEtchTemplate($eid: String!, $isRepeatable: Boolean, $name: String, $config: JSON) {
updateEtchTemplate(eid: $eid, isRepeatable: $isRepeatable, name: $name, config: $config) {
id
eid
name
isFree
isRepeatable
config
organization {
...OrganizationFragment
}
casts {
...CastFragment
}
etchPackets {
...EtchPacketFragment
}
userUploads {
...UserUploadFragment
}
createdAt
updatedAt
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"isRepeatable": false,
"name": "EtchTemplate Name",
"config": {}
}
Response
{
"data": {
"updateEtchTemplate": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "EtchTemplate Name",
"isFree": false,
"isRepeatable": false,
"config": {},
"organization": Organization,
"casts": [Cast],
"etchPackets": [EtchPacket],
"userUploads": [UserUpload],
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z"
}
}
}
updateForge
Forge
Name | Description |
---|---|
eid -
String!
|
|
name -
String
|
|
slug -
String
|
|
config -
JSON
|
|
configFile -
Upload
|
|
isArchived -
Boolean
|
|
isRequired -
Boolean
|
|
title -
String
|
|
organizationRole -
String
|
|
unauthenticatedAuthType -
String
|
|
versionNumber -
Int
|
Example
Query
mutation updateForge($eid: String!, $name: String, $slug: String, $config: JSON, $configFile: Upload, $isArchived: Boolean, $isRequired: Boolean, $title: String, $organizationRole: String, $unauthenticatedAuthType: String, $versionNumber: Int) {
updateForge(eid: $eid, name: $name, slug: $slug, config: $config, configFile: $configFile, isArchived: $isArchived, isRequired: $isRequired, title: $title, organizationRole: $organizationRole, unauthenticatedAuthType: $unauthenticatedAuthType, versionNumber: $versionNumber) {
id
eid
name
slug
isRequired
config
fieldInfo
weld {
...WeldFragment
}
organization {
...OrganizationFragment
}
userUploads {
...UserUploadFragment
}
versionNumber
createdAt
updatedAt
archivedAt
examplePayload
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Forge Name",
"slug": "forge-name",
"config": {},
"configFile": Upload,
"isArchived": true,
"isRequired": true,
"title": "Forge Title",
"organizationRole": "xyz789",
"unauthenticatedAuthType": "abc123",
"versionNumber": 123
}
mutation updateForge($eid: String!, $name: String, $slug: String, $config: JSON, $configFile: Upload, $isArchived: Boolean, $isRequired: Boolean, $title: String, $organizationRole: String, $unauthenticatedAuthType: String, $versionNumber: Int) {
updateForge(eid: $eid, name: $name, slug: $slug, config: $config, configFile: $configFile, isArchived: $isArchived, isRequired: $isRequired, title: $title, organizationRole: $organizationRole, unauthenticatedAuthType: $unauthenticatedAuthType, versionNumber: $versionNumber) {
id
eid
name
slug
isRequired
config
fieldInfo
weld {
...WeldFragment
}
organization {
...OrganizationFragment
}
userUploads {
...UserUploadFragment
}
versionNumber
createdAt
updatedAt
archivedAt
examplePayload
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Forge Name",
"slug": "forge-name",
"config": {},
"configFile": Upload,
"isArchived": true,
"isRequired": true,
"title": "Forge Title",
"organizationRole": "xyz789",
"unauthenticatedAuthType": "abc123",
"versionNumber": 123
}
Response
{
"data": {
"updateForge": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Forge Name",
"slug": "forge-name",
"isRequired": true,
"config": {},
"fieldInfo": {},
"weld": Weld,
"organization": Organization,
"userUploads": [UserUpload],
"versionNumber": 123,
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2021-11-04T21:19:02.316Z",
"examplePayload": {}
}
}
}
updateOrganization
Organization
Name | Description |
---|---|
organizationSlug -
String!
|
|
name -
String
|
|
logo -
Upload
|
|
billingEmail -
String
|
|
supportEmail -
String
|
|
slug -
String
|
|
defaultSourceId -
String
|
|
signatureProvider -
String
|
|
config -
JSON
|
|
usePDFFillingAPI -
Boolean
|
|
weldCompleteEmailRecipients -
JSON
|
|
signerViewEmailRecipients -
JSON
|
|
signerCompleteEmailRecipients -
JSON
|
|
etchCompleteEmailRecipients -
JSON
|
Example
Query
mutation updateOrganization($organizationSlug: String!, $name: String, $logo: Upload, $billingEmail: String, $supportEmail: String, $slug: String, $defaultSourceId: String, $signatureProvider: String, $config: JSON, $usePDFFillingAPI: Boolean, $weldCompleteEmailRecipients: JSON, $signerViewEmailRecipients: JSON, $signerCompleteEmailRecipients: JSON, $etchCompleteEmailRecipients: JSON) {
updateOrganization(organizationSlug: $organizationSlug, name: $name, logo: $logo, billingEmail: $billingEmail, supportEmail: $supportEmail, slug: $slug, defaultSourceId: $defaultSourceId, signatureProvider: $signatureProvider, config: $config, usePDFFillingAPI: $usePDFFillingAPI, weldCompleteEmailRecipients: $weldCompleteEmailRecipients, signerViewEmailRecipients: $signerViewEmailRecipients, signerCompleteEmailRecipients: $signerCompleteEmailRecipients, etchCompleteEmailRecipients: $etchCompleteEmailRecipients) {
id
eid
name
logo
logoURL
parentOrganization {
...OrganizationFragment
}
billingEmail
supportEmail
slug
users {
...UserFragment
}
adminUsers {
...UserFragment
}
organizationUsers {
...OrganizationUserFragment
}
organizationUserInvites {
...OrganizationUserInviteFragment
}
isPersonal
isInternal
isSubscribed
useTestSignatureProvider
config
createdAt
updatedAt
welds {
...WeldFragment
}
etchTemplates {
...EtchTemplateFragment
}
etchPackets {
...EtchPacketPageFragment
}
weldGroups {
...WeldGroupFragment
}
forges {
...ForgeFragment
}
forgeMaps {
...ForgeMapFragment
}
casts {
...CastFragment
}
paymentMethods {
...PaymentMethodFragment
}
webhook {
...WebhookFragment
}
webhookActions {
...WebhookActionFragment
}
webhookLogs {
...WebhookLogPageFragment
}
childOrganizations {
...OrganizationFragment
}
subscribedPlanFeatures
subscriptionActivity
currentInvoice {
...InvoiceFragment
}
totalUsedUnits
weldCompleteWebhookStats
weldCompleteStats
etchCompleteStats
remainingSubmissions
remainingEtchCompletions
signatureProviderType
availableSignatureProviderTypes
}
}
Variables
{
"organizationSlug": "organization-slug",
"name": "Organization Name",
"logo": Upload,
"billingEmail": "user@domain.com",
"supportEmail": "user@domain.com",
"slug": "organization-name",
"defaultSourceId": "xyz789",
"signatureProvider": "xyz789",
"config": {},
"usePDFFillingAPI": false,
"weldCompleteEmailRecipients": {},
"signerViewEmailRecipients": {},
"signerCompleteEmailRecipients": {},
"etchCompleteEmailRecipients": {}
}
mutation updateOrganization($organizationSlug: String!, $name: String, $logo: Upload, $billingEmail: String, $supportEmail: String, $slug: String, $defaultSourceId: String, $signatureProvider: String, $config: JSON, $usePDFFillingAPI: Boolean, $weldCompleteEmailRecipients: JSON, $signerViewEmailRecipients: JSON, $signerCompleteEmailRecipients: JSON, $etchCompleteEmailRecipients: JSON) {
updateOrganization(organizationSlug: $organizationSlug, name: $name, logo: $logo, billingEmail: $billingEmail, supportEmail: $supportEmail, slug: $slug, defaultSourceId: $defaultSourceId, signatureProvider: $signatureProvider, config: $config, usePDFFillingAPI: $usePDFFillingAPI, weldCompleteEmailRecipients: $weldCompleteEmailRecipients, signerViewEmailRecipients: $signerViewEmailRecipients, signerCompleteEmailRecipients: $signerCompleteEmailRecipients, etchCompleteEmailRecipients: $etchCompleteEmailRecipients) {
id
eid
name
logo
logoURL
parentOrganization {
...OrganizationFragment
}
billingEmail
supportEmail
slug
users {
...UserFragment
}
adminUsers {
...UserFragment
}
organizationUsers {
...OrganizationUserFragment
}
organizationUserInvites {
...OrganizationUserInviteFragment
}
isPersonal
isInternal
isSubscribed
useTestSignatureProvider
config
createdAt
updatedAt
welds {
...WeldFragment
}
etchTemplates {
...EtchTemplateFragment
}
etchPackets {
...EtchPacketPageFragment
}
weldGroups {
...WeldGroupFragment
}
forges {
...ForgeFragment
}
forgeMaps {
...ForgeMapFragment
}
casts {
...CastFragment
}
paymentMethods {
...PaymentMethodFragment
}
webhook {
...WebhookFragment
}
webhookActions {
...WebhookActionFragment
}
webhookLogs {
...WebhookLogPageFragment
}
childOrganizations {
...OrganizationFragment
}
subscribedPlanFeatures
subscriptionActivity
currentInvoice {
...InvoiceFragment
}
totalUsedUnits
weldCompleteWebhookStats
weldCompleteStats
etchCompleteStats
remainingSubmissions
remainingEtchCompletions
signatureProviderType
availableSignatureProviderTypes
}
}
{
"organizationSlug": "organization-slug",
"name": "Organization Name",
"logo": Upload,
"billingEmail": "user@domain.com",
"supportEmail": "user@domain.com",
"slug": "organization-name",
"defaultSourceId": "xyz789",
"signatureProvider": "xyz789",
"config": {},
"usePDFFillingAPI": false,
"weldCompleteEmailRecipients": {},
"signerViewEmailRecipients": {},
"signerCompleteEmailRecipients": {},
"etchCompleteEmailRecipients": {}
}
Response
{
"data": {
"updateOrganization": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Organization Name",
"logo": {},
"logoURL": "https://app.useanvil.com/uploads/nA1jH49FVUWrrE60hMbi.png",
"parentOrganization": Organization,
"billingEmail": "user@domain.com",
"supportEmail": "user@domain.com",
"slug": "organization-name",
"users": [User],
"adminUsers": [User],
"organizationUsers": [OrganizationUser],
"organizationUserInvites": [OrganizationUserInvite],
"isPersonal": true,
"isInternal": false,
"isSubscribed": false,
"useTestSignatureProvider": true,
"config": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"welds": [Weld],
"etchTemplates": [EtchTemplate],
"etchPackets": EtchPacketPage,
"weldGroups": [WeldGroup],
"forges": [Forge],
"forgeMaps": [ForgeMap],
"casts": [Cast],
"paymentMethods": [PaymentMethod],
"webhook": Webhook,
"webhookActions": [WebhookAction],
"webhookLogs": WebhookLogPage,
"childOrganizations": [Organization],
"subscribedPlanFeatures": {},
"subscriptionActivity": {},
"currentInvoice": Invoice,
"totalUsedUnits": 123,
"weldCompleteWebhookStats": {},
"weldCompleteStats": {},
"etchCompleteStats": {},
"remainingSubmissions": {},
"remainingEtchCompletions": {},
"signatureProviderType": "xyz789",
"availableSignatureProviderTypes": ["abc123"]
}
}
}
updateOrganizationUser
Organization
Name | Description |
---|---|
role -
String!
|
|
externalId -
String
|
|
organizationEid -
String!
|
|
userEid -
String!
|
Example
Query
mutation updateOrganizationUser($role: String!, $externalId: String, $organizationEid: String!, $userEid: String!) {
updateOrganizationUser(role: $role, externalId: $externalId, organizationEid: $organizationEid, userEid: $userEid) {
id
eid
name
logo
logoURL
parentOrganization {
...OrganizationFragment
}
billingEmail
supportEmail
slug
users {
...UserFragment
}
adminUsers {
...UserFragment
}
organizationUsers {
...OrganizationUserFragment
}
organizationUserInvites {
...OrganizationUserInviteFragment
}
isPersonal
isInternal
isSubscribed
useTestSignatureProvider
config
createdAt
updatedAt
welds {
...WeldFragment
}
etchTemplates {
...EtchTemplateFragment
}
etchPackets {
...EtchPacketPageFragment
}
weldGroups {
...WeldGroupFragment
}
forges {
...ForgeFragment
}
forgeMaps {
...ForgeMapFragment
}
casts {
...CastFragment
}
paymentMethods {
...PaymentMethodFragment
}
webhook {
...WebhookFragment
}
webhookActions {
...WebhookActionFragment
}
webhookLogs {
...WebhookLogPageFragment
}
childOrganizations {
...OrganizationFragment
}
subscribedPlanFeatures
subscriptionActivity
currentInvoice {
...InvoiceFragment
}
totalUsedUnits
weldCompleteWebhookStats
weldCompleteStats
etchCompleteStats
remainingSubmissions
remainingEtchCompletions
signatureProviderType
availableSignatureProviderTypes
}
}
Variables
{
"role": "xyz789",
"externalId": "abc123",
"organizationEid": "kQp2qd9FVUWrrE60hMbi",
"userEid": "kQp2qd9FVUWrrE60hMbi"
}
mutation updateOrganizationUser($role: String!, $externalId: String, $organizationEid: String!, $userEid: String!) {
updateOrganizationUser(role: $role, externalId: $externalId, organizationEid: $organizationEid, userEid: $userEid) {
id
eid
name
logo
logoURL
parentOrganization {
...OrganizationFragment
}
billingEmail
supportEmail
slug
users {
...UserFragment
}
adminUsers {
...UserFragment
}
organizationUsers {
...OrganizationUserFragment
}
organizationUserInvites {
...OrganizationUserInviteFragment
}
isPersonal
isInternal
isSubscribed
useTestSignatureProvider
config
createdAt
updatedAt
welds {
...WeldFragment
}
etchTemplates {
...EtchTemplateFragment
}
etchPackets {
...EtchPacketPageFragment
}
weldGroups {
...WeldGroupFragment
}
forges {
...ForgeFragment
}
forgeMaps {
...ForgeMapFragment
}
casts {
...CastFragment
}
paymentMethods {
...PaymentMethodFragment
}
webhook {
...WebhookFragment
}
webhookActions {
...WebhookActionFragment
}
webhookLogs {
...WebhookLogPageFragment
}
childOrganizations {
...OrganizationFragment
}
subscribedPlanFeatures
subscriptionActivity
currentInvoice {
...InvoiceFragment
}
totalUsedUnits
weldCompleteWebhookStats
weldCompleteStats
etchCompleteStats
remainingSubmissions
remainingEtchCompletions
signatureProviderType
availableSignatureProviderTypes
}
}
{
"role": "xyz789",
"externalId": "abc123",
"organizationEid": "kQp2qd9FVUWrrE60hMbi",
"userEid": "kQp2qd9FVUWrrE60hMbi"
}
Response
{
"data": {
"updateOrganizationUser": {
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Organization Name",
"logo": {},
"logoURL": "https://app.useanvil.com/uploads/nA1jH49FVUWrrE60hMbi.png",
"parentOrganization": Organization,
"billingEmail": "user@domain.com",
"supportEmail": "user@domain.com",
"slug": "organization-name",
"users": [User],
"adminUsers": [User],
"organizationUsers": [OrganizationUser],
"organizationUserInvites": [OrganizationUserInvite],
"isPersonal": true,
"isInternal": false,
"isSubscribed": false,
"useTestSignatureProvider": true,
"config": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"welds": [Weld],
"etchTemplates": [EtchTemplate],
"etchPackets": EtchPacketPage,
"weldGroups": [WeldGroup],
"forges": [Forge],
"forgeMaps": [ForgeMap],
"casts": [Cast],
"paymentMethods": [PaymentMethod],
"webhook": Webhook,
"webhookActions": [WebhookAction],
"webhookLogs": WebhookLogPage,
"childOrganizations": [Organization],
"subscribedPlanFeatures": {},
"subscriptionActivity": {},
"currentInvoice": Invoice,
"totalUsedUnits": 123,
"weldCompleteWebhookStats": {},
"weldCompleteStats": {},
"etchCompleteStats": {},
"remainingSubmissions": {},
"remainingEtchCompletions": {},
"signatureProviderType": "xyz789",
"availableSignatureProviderTypes": ["abc123"]
}
}
}
updateSubmission
Example
Query
mutation updateSubmission($eid: String!, $isExcluded: Boolean) {
updateSubmission(eid: $eid, isExcluded: $isExcluded) {
id
eid
status
resolvedPayload
payload
payloadValue
currentStep
totalSteps
continueURL
weldData {
...WeldDataFragment
}
forge {
...ForgeFragment
}
user {
...UserFragment
}
signer {
...SignerFragment
}
reviewData
completionPercentage
isExcluded
touchedByUser
requestMeta
createdAt
updatedAt
completedAt
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"isExcluded": false
}
mutation updateSubmission($eid: String!, $isExcluded: Boolean) {
updateSubmission(eid: $eid, isExcluded: $isExcluded) {
id
eid
status
resolvedPayload
payload
payloadValue
currentStep
totalSteps
continueURL
weldData {
...WeldDataFragment
}
forge {
...ForgeFragment
}
user {
...UserFragment
}
signer {
...SignerFragment
}
reviewData
completionPercentage
isExcluded
touchedByUser
requestMeta
createdAt
updatedAt
completedAt
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"isExcluded": false
}
Response
{
"data": {
"updateSubmission": {
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"status": "in-progress",
"resolvedPayload": {
"email": {
"id": f162136372633517,
"aliasId": email,
"type": email,
"label": Email,
"value": hello@example.com
}
},
"payload": {
"f162136372633517": {
"type": email,
"value": hello@example.com
}
},
"payloadValue": {
"f162136372633517": hello@example.com
},
"currentStep": 987,
"totalSteps": 987,
"continueURL": "https://app.useanvil.com/form/demo/my-form/nA1jH49FVUWrrE60hMbi",
"weldData": WeldData,
"forge": Forge,
"user": User,
"signer": Signer,
"reviewData": {},
"completionPercentage": 33.33,
"isExcluded": true,
"touchedByUser": true,
"requestMeta": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"completedAt": "2021-11-04T21:19:02.316Z"
}
}
}
updateWebhook
Example
Query
mutation updateWebhook($eid: String!, $url: String) {
updateWebhook(eid: $eid, url: $url) {
id
eid
name
logo
logoURL
parentOrganization {
...OrganizationFragment
}
billingEmail
supportEmail
slug
users {
...UserFragment
}
adminUsers {
...UserFragment
}
organizationUsers {
...OrganizationUserFragment
}
organizationUserInvites {
...OrganizationUserInviteFragment
}
isPersonal
isInternal
isSubscribed
useTestSignatureProvider
config
createdAt
updatedAt
welds {
...WeldFragment
}
etchTemplates {
...EtchTemplateFragment
}
etchPackets {
...EtchPacketPageFragment
}
weldGroups {
...WeldGroupFragment
}
forges {
...ForgeFragment
}
forgeMaps {
...ForgeMapFragment
}
casts {
...CastFragment
}
paymentMethods {
...PaymentMethodFragment
}
webhook {
...WebhookFragment
}
webhookActions {
...WebhookActionFragment
}
webhookLogs {
...WebhookLogPageFragment
}
childOrganizations {
...OrganizationFragment
}
subscribedPlanFeatures
subscriptionActivity
currentInvoice {
...InvoiceFragment
}
totalUsedUnits
weldCompleteWebhookStats
weldCompleteStats
etchCompleteStats
remainingSubmissions
remainingEtchCompletions
signatureProviderType
availableSignatureProviderTypes
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"url": "https://domain.com/page.html"
}
mutation updateWebhook($eid: String!, $url: String) {
updateWebhook(eid: $eid, url: $url) {
id
eid
name
logo
logoURL
parentOrganization {
...OrganizationFragment
}
billingEmail
supportEmail
slug
users {
...UserFragment
}
adminUsers {
...UserFragment
}
organizationUsers {
...OrganizationUserFragment
}
organizationUserInvites {
...OrganizationUserInviteFragment
}
isPersonal
isInternal
isSubscribed
useTestSignatureProvider
config
createdAt
updatedAt
welds {
...WeldFragment
}
etchTemplates {
...EtchTemplateFragment
}
etchPackets {
...EtchPacketPageFragment
}
weldGroups {
...WeldGroupFragment
}
forges {
...ForgeFragment
}
forgeMaps {
...ForgeMapFragment
}
casts {
...CastFragment
}
paymentMethods {
...PaymentMethodFragment
}
webhook {
...WebhookFragment
}
webhookActions {
...WebhookActionFragment
}
webhookLogs {
...WebhookLogPageFragment
}
childOrganizations {
...OrganizationFragment
}
subscribedPlanFeatures
subscriptionActivity
currentInvoice {
...InvoiceFragment
}
totalUsedUnits
weldCompleteWebhookStats
weldCompleteStats
etchCompleteStats
remainingSubmissions
remainingEtchCompletions
signatureProviderType
availableSignatureProviderTypes
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"url": "https://domain.com/page.html"
}
Response
{
"data": {
"updateWebhook": {
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Organization Name",
"logo": {},
"logoURL": "https://app.useanvil.com/uploads/nA1jH49FVUWrrE60hMbi.png",
"parentOrganization": Organization,
"billingEmail": "user@domain.com",
"supportEmail": "user@domain.com",
"slug": "organization-name",
"users": [User],
"adminUsers": [User],
"organizationUsers": [OrganizationUser],
"organizationUserInvites": [OrganizationUserInvite],
"isPersonal": false,
"isInternal": true,
"isSubscribed": false,
"useTestSignatureProvider": false,
"config": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"welds": [Weld],
"etchTemplates": [EtchTemplate],
"etchPackets": EtchPacketPage,
"weldGroups": [WeldGroup],
"forges": [Forge],
"forgeMaps": [ForgeMap],
"casts": [Cast],
"paymentMethods": [PaymentMethod],
"webhook": Webhook,
"webhookActions": [WebhookAction],
"webhookLogs": WebhookLogPage,
"childOrganizations": [Organization],
"subscribedPlanFeatures": {},
"subscriptionActivity": {},
"currentInvoice": Invoice,
"totalUsedUnits": 123,
"weldCompleteWebhookStats": {},
"weldCompleteStats": {},
"etchCompleteStats": {},
"remainingSubmissions": {},
"remainingEtchCompletions": {},
"signatureProviderType": "abc123",
"availableSignatureProviderTypes": ["xyz789"]
}
}
}
updateWeld
Weld
Name | Description |
---|---|
eid -
String!
|
|
name -
String
|
|
slug -
String
|
|
visibility -
String
|
|
config -
JSON
|
|
configFile -
Upload
|
|
isArchived -
Boolean
|
|
expiresAt -
String
|
|
draftStep -
String
|
|
entryForgeId -
Int
|
|
entryButtonText -
String
|
|
entryButtonCopyLink -
Boolean
|
|
signatureEmailSubject -
JSON
|
|
signatureEmailBody -
JSON
|
|
dataDisplayTitle -
JSON
|
|
signatureProvider -
String
|
|
lockedTitleNew -
String
|
|
lockedDescriptionNew -
String
|
|
lockedTitleExisting -
String
|
|
lockedDescriptionExisting -
String
|
|
expireAfterDaysComplete -
Int
|
|
expireAfterDaysStart -
Int
|
|
planEid -
String
|
|
versionNumber -
Int
|
|
weldCompleteEmailRecipients -
JSON
|
Example
Query
mutation updateWeld($eid: String!, $name: String, $slug: String, $visibility: String, $config: JSON, $configFile: Upload, $isArchived: Boolean, $expiresAt: String, $draftStep: String, $entryForgeId: Int, $entryButtonText: String, $entryButtonCopyLink: Boolean, $signatureEmailSubject: JSON, $signatureEmailBody: JSON, $dataDisplayTitle: JSON, $signatureProvider: String, $lockedTitleNew: String, $lockedDescriptionNew: String, $lockedTitleExisting: String, $lockedDescriptionExisting: String, $expireAfterDaysComplete: Int, $expireAfterDaysStart: Int, $planEid: String, $versionNumber: Int, $weldCompleteEmailRecipients: JSON) {
updateWeld(eid: $eid, name: $name, slug: $slug, visibility: $visibility, config: $config, configFile: $configFile, isArchived: $isArchived, expiresAt: $expiresAt, draftStep: $draftStep, entryForgeId: $entryForgeId, entryButtonText: $entryButtonText, entryButtonCopyLink: $entryButtonCopyLink, signatureEmailSubject: $signatureEmailSubject, signatureEmailBody: $signatureEmailBody, dataDisplayTitle: $dataDisplayTitle, signatureProvider: $signatureProvider, lockedTitleNew: $lockedTitleNew, lockedDescriptionNew: $lockedDescriptionNew, lockedTitleExisting: $lockedTitleExisting, lockedDescriptionExisting: $lockedDescriptionExisting, expireAfterDaysComplete: $expireAfterDaysComplete, expireAfterDaysStart: $expireAfterDaysStart, planEid: $planEid, versionNumber: $versionNumber, weldCompleteEmailRecipients: $weldCompleteEmailRecipients) {
id
eid
slug
name
visibility
config
organization {
...OrganizationFragment
}
hasSigners
forges {
...ForgeFragment
}
casts {
...CastFragment
}
versionNumber
weldGroups {
...WeldGroupFragment
}
weldDatas {
...WeldDataPageFragment
}
signatureProviderType
availableSignatureProviderTypes
remainingSubmissions
createdAt
updatedAt
archivedAt
expiresAt
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Weld Name",
"slug": "weld-name",
"visibility": "xyz789",
"config": {},
"configFile": Upload,
"isArchived": true,
"expiresAt": "abc123",
"draftStep": "xyz789",
"entryForgeId": 123,
"entryButtonText": "xyz789",
"entryButtonCopyLink": true,
"signatureEmailSubject": {},
"signatureEmailBody": {},
"dataDisplayTitle": {},
"signatureProvider": "xyz789",
"lockedTitleNew": "abc123",
"lockedDescriptionNew": "xyz789",
"lockedTitleExisting": "xyz789",
"lockedDescriptionExisting": "abc123",
"expireAfterDaysComplete": 987,
"expireAfterDaysStart": 987,
"planEid": "kQp2qd9FVUWrrE60hMbi",
"versionNumber": 987,
"weldCompleteEmailRecipients": {}
}
mutation updateWeld($eid: String!, $name: String, $slug: String, $visibility: String, $config: JSON, $configFile: Upload, $isArchived: Boolean, $expiresAt: String, $draftStep: String, $entryForgeId: Int, $entryButtonText: String, $entryButtonCopyLink: Boolean, $signatureEmailSubject: JSON, $signatureEmailBody: JSON, $dataDisplayTitle: JSON, $signatureProvider: String, $lockedTitleNew: String, $lockedDescriptionNew: String, $lockedTitleExisting: String, $lockedDescriptionExisting: String, $expireAfterDaysComplete: Int, $expireAfterDaysStart: Int, $planEid: String, $versionNumber: Int, $weldCompleteEmailRecipients: JSON) {
updateWeld(eid: $eid, name: $name, slug: $slug, visibility: $visibility, config: $config, configFile: $configFile, isArchived: $isArchived, expiresAt: $expiresAt, draftStep: $draftStep, entryForgeId: $entryForgeId, entryButtonText: $entryButtonText, entryButtonCopyLink: $entryButtonCopyLink, signatureEmailSubject: $signatureEmailSubject, signatureEmailBody: $signatureEmailBody, dataDisplayTitle: $dataDisplayTitle, signatureProvider: $signatureProvider, lockedTitleNew: $lockedTitleNew, lockedDescriptionNew: $lockedDescriptionNew, lockedTitleExisting: $lockedTitleExisting, lockedDescriptionExisting: $lockedDescriptionExisting, expireAfterDaysComplete: $expireAfterDaysComplete, expireAfterDaysStart: $expireAfterDaysStart, planEid: $planEid, versionNumber: $versionNumber, weldCompleteEmailRecipients: $weldCompleteEmailRecipients) {
id
eid
slug
name
visibility
config
organization {
...OrganizationFragment
}
hasSigners
forges {
...ForgeFragment
}
casts {
...CastFragment
}
versionNumber
weldGroups {
...WeldGroupFragment
}
weldDatas {
...WeldDataPageFragment
}
signatureProviderType
availableSignatureProviderTypes
remainingSubmissions
createdAt
updatedAt
archivedAt
expiresAt
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Weld Name",
"slug": "weld-name",
"visibility": "xyz789",
"config": {},
"configFile": Upload,
"isArchived": true,
"expiresAt": "abc123",
"draftStep": "xyz789",
"entryForgeId": 123,
"entryButtonText": "xyz789",
"entryButtonCopyLink": true,
"signatureEmailSubject": {},
"signatureEmailBody": {},
"dataDisplayTitle": {},
"signatureProvider": "xyz789",
"lockedTitleNew": "abc123",
"lockedDescriptionNew": "xyz789",
"lockedTitleExisting": "xyz789",
"lockedDescriptionExisting": "abc123",
"expireAfterDaysComplete": 987,
"expireAfterDaysStart": 987,
"planEid": "kQp2qd9FVUWrrE60hMbi",
"versionNumber": 987,
"weldCompleteEmailRecipients": {}
}
Response
{
"data": {
"updateWeld": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"slug": "weld-name",
"name": "Weld Name",
"visibility": "live",
"config": {},
"organization": Organization,
"hasSigners": false,
"forges": [Forge],
"casts": [Cast],
"versionNumber": 987,
"weldGroups": [WeldGroup],
"weldDatas": WeldDataPage,
"signatureProviderType": "etch",
"availableSignatureProviderTypes": [
[etch, docusign]
],
"remainingSubmissions": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2021-11-04T21:19:02.316Z",
"expiresAt": "2022-05-04T21:19:02.316Z"
}
}
}
updateWeldData
WeldData
Name | Description |
---|---|
eid -
String!
|
|
isTest -
Boolean
|
|
isArchived -
Boolean
|
|
isExpired -
Boolean
|
|
pin -
String
|
|
webhookURL -
String
|
Example
Query
mutation updateWeldData($eid: String!, $isTest: Boolean, $isArchived: Boolean, $isExpired: Boolean, $pin: String, $webhookURL: String) {
updateWeldData(eid: $eid, isTest: $isTest, isArchived: $isArchived, isExpired: $isExpired, pin: $pin, webhookURL: $webhookURL) {
id
eid
displayTitle
status
isTest
isExpired
isComplete
isCompleteAndSigned
continueURL
webhookURL
completionPercentage
numberRemainingSigners
payloadCanBeUpdated
hasSigners
nextSigner {
...SignerFragment
}
hasPin
pin
agents
files
excludedFiles
weld {
...WeldFragment
}
submissions {
...SubmissionFragment
}
documentGroup {
...DocumentGroupFragment
}
webhookLogs {
...WebhookLogFragment
}
etchLogEvents {
...EtchLogFragment
}
weldDataLogEvents {
...WeldDataLogFragment
}
userUploads {
...UserUploadFragment
}
forgesRequiringCompletion {
...ForgeFragment
}
weldDataGroup {
...WeldDataGroupFragment
}
createdAt
updatedAt
dataUpdatedAt
expiresAt
archivedAt
}
}
Variables
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"isTest": true,
"isArchived": false,
"isExpired": false,
"pin": "9876",
"webhookURL": "https://domain.com/page.html"
}
mutation updateWeldData($eid: String!, $isTest: Boolean, $isArchived: Boolean, $isExpired: Boolean, $pin: String, $webhookURL: String) {
updateWeldData(eid: $eid, isTest: $isTest, isArchived: $isArchived, isExpired: $isExpired, pin: $pin, webhookURL: $webhookURL) {
id
eid
displayTitle
status
isTest
isExpired
isComplete
isCompleteAndSigned
continueURL
webhookURL
completionPercentage
numberRemainingSigners
payloadCanBeUpdated
hasSigners
nextSigner {
...SignerFragment
}
hasPin
pin
agents
files
excludedFiles
weld {
...WeldFragment
}
submissions {
...SubmissionFragment
}
documentGroup {
...DocumentGroupFragment
}
webhookLogs {
...WebhookLogFragment
}
etchLogEvents {
...EtchLogFragment
}
weldDataLogEvents {
...WeldDataLogFragment
}
userUploads {
...UserUploadFragment
}
forgesRequiringCompletion {
...ForgeFragment
}
weldDataGroup {
...WeldDataGroupFragment
}
createdAt
updatedAt
dataUpdatedAt
expiresAt
archivedAt
}
}
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"isTest": true,
"isArchived": false,
"isExpired": false,
"pin": "9876",
"webhookURL": "https://domain.com/page.html"
}
Response
{
"data": {
"updateWeldData": {
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"displayTitle": "Sally's workflow submission",
"status": "in-progress",
"isTest": true,
"isExpired": true,
"isComplete": true,
"isCompleteAndSigned": false,
"continueURL": "https://app.useanvil.com/form/demo/my-form/nA1jH49FVUWrrE60hMbi",
"webhookURL": "https://yoursite.com/webhooks/anvil",
"completionPercentage": 0.2,
"numberRemainingSigners": 987,
"payloadCanBeUpdated": true,
"hasSigners": false,
"nextSigner": Signer,
"hasPin": true,
"pin": "9876",
"agents": {},
"files": [
[
{
"filename": Hello World.pdf,
"name": Hello World,
"type": pdf
}
]
],
"excludedFiles": [
[
{
"filename": Dont Sign Me.pdf,
"name": Don't sign this doc,
"type": pdf
}
]
],
"weld": Weld,
"submissions": [Submission],
"documentGroup": DocumentGroup,
"webhookLogs": [WebhookLog],
"etchLogEvents": [EtchLog],
"weldDataLogEvents": [WeldDataLog],
"userUploads": [UserUpload],
"forgesRequiringCompletion": [Forge],
"weldDataGroup": WeldDataGroup,
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"dataUpdatedAt": "2021-11-04T21:19:02.316Z",
"expiresAt": "2021-11-04T21:19:02.316Z",
"archivedAt": "2021-11-04T21:19:02.316Z"
}
}
}
voidDocumentGroup
Example
Query
mutation voidDocumentGroup($weldDataEid: String, $eid: String, $voidedReason: String!) {
voidDocumentGroup(weldDataEid: $weldDataEid, eid: $eid, voidedReason: $voidedReason) {
id
eid
status
provider
currentRoutingStep
files
weldData {
...WeldDataFragment
}
etchPacket {
...EtchPacketFragment
}
signers {
...SignerFragment
}
providerConfig
finishPageConfig
signaturePageConfig
downloadZipURL
createdAt
updatedAt
completedAt
}
}
Variables
{
"weldDataEid": "kQp2qd9FVUWrrE60hMbi",
"eid": "kQp2qd9FVUWrrE60hMbi",
"voidedReason": "xyz789"
}
mutation voidDocumentGroup($weldDataEid: String, $eid: String, $voidedReason: String!) {
voidDocumentGroup(weldDataEid: $weldDataEid, eid: $eid, voidedReason: $voidedReason) {
id
eid
status
provider
currentRoutingStep
files
weldData {
...WeldDataFragment
}
etchPacket {
...EtchPacketFragment
}
signers {
...SignerFragment
}
providerConfig
finishPageConfig
signaturePageConfig
downloadZipURL
createdAt
updatedAt
completedAt
}
}
{
"weldDataEid": "kQp2qd9FVUWrrE60hMbi",
"eid": "kQp2qd9FVUWrrE60hMbi",
"voidedReason": "xyz789"
}
Response
{
"data": {
"voidDocumentGroup": {
"id": 987,
"eid": "nA1jH49FVUWrrE60hMbi",
"status": "completed",
"provider": "etch",
"currentRoutingStep": 987,
"files": [
[
{
"filename": Hello World.pdf,
"name": Hello World,
"type": pdf
}
]
],
"weldData": WeldData,
"etchPacket": EtchPacket,
"signers": [Signer],
"providerConfig": {},
"finishPageConfig": {},
"signaturePageConfig": {},
"downloadZipURL": "http://app.useanvil.com/download/nA1jH49FVUWrrE60hMbi.zip",
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"completedAt": "2021-11-04T21:19:02.316Z"
}
}
}
Types
Cast
A Cast
holds configuration for a single PDF template. It defines the location of boxes on PDF pages, and the type of each box (e.g. date, phone number, etc.).
Cast
objects are used by several API features:
- The PDF filling endpoint
- Etch signature packets: see the Etch e-sign guide for more info
- Workflows: see the Workflow API guide for more info
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
type -
String
|
The file's mimetype. e.g. application/pdf |
name -
String
|
The file name |
title -
String
|
The title shown in the UI |
isTemplate -
Boolean
|
true when this Cast was created as a template. Template casts show up in the PDF Templates page on your dashboard. |
exampleData -
JSON
|
Example data payload to fill this PDF. Shown on the "API Info" tab for this template |
fieldInfo -
JSON
|
A digestable array of objects with all the details about all fields in this PDF, sorted by page, top to bottom, left to right. Shown on the "API Info" tab for this template |
config -
JSON
|
|
Arguments |
|
organization -
Organization
|
|
versionNumber -
Int
|
The current version number of this Cast |
parentCast -
Cast
|
If this Cast was originally copied from another Cast , this will be the original Cast . |
createdAt -
Date
|
|
updatedAt -
Date
|
|
archivedAt -
Date
|
Example
{
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"type": "application/pdf",
"name": "Cast Name",
"title": "Cast Title",
"isTemplate": false,
"exampleData": {},
"fieldInfo": {},
"config": {},
"organization": Organization,
"versionNumber": 987,
"parentCast": Cast,
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2021-11-04T21:19:02.316Z"
}
CastPage
Field Name | Description |
---|---|
rowCount -
Int
|
Total number of rows found for the query before pagination |
pageCount -
Int
|
Total number of pages of results |
page -
Int
|
The requested page number |
pageSize -
Int
|
The requested number of rows per page |
items -
[Cast]
|
The actual records for the requested page |
Example
{
"rowCount": 20,
"pageCount": 2,
"page": 1,
"pageSize": 10,
"items": [Cast]
}
CastVersion
Field Name | Description |
---|---|
id -
Int!
|
|
number -
Int
|
|
updatedColumns -
[String]
|
|
name -
String
|
|
type -
String
|
|
title -
String
|
|
config -
JSON
|
|
createdAt -
Date
|
|
updatedAt -
Date
|
|
user -
User
|
Example
{
"id": 987,
"number": 987,
"updatedColumns": [config],
"name": "CastVersion Name",
"type": "application/pdf",
"title": "CastVersion Title",
"config": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"user": User
}
CastVersionPage
Field Name | Description |
---|---|
rowCount -
Int
|
Total number of rows found for the query before pagination |
pageCount -
Int
|
Total number of pages of results |
page -
Int
|
The requested page number |
pageSize -
Int
|
The requested number of rows per page |
items -
[CastVersion]
|
The actual records for the requested page |
Example
{
"rowCount": 20,
"pageCount": 2,
"page": 1,
"pageSize": 10,
"items": [CastVersion]
}
DocumentGroup
A collection of all the final files generated with data from a WeldData
or EtchPacket
. When your users download a zip file of PDFs, that final collection of filled, generated, uploaded, and signed files is specified by the DocumentGroup
. A DocumentGroup
will be connected to either a WeldData
or a EtchPacket
, never both. A DocumentGroup
will only exist on these objects if it has been sent out for signature.
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
status -
String
|
Possible values: sent , delivered , partial , declined , voided , completed |
provider -
String
|
Possible values: etch or docusign |
currentRoutingStep -
Int
|
|
files -
[JSON]
|
A file listing of all files in the DocumentGroup |
weldData -
WeldData
|
The parent WeldData . This will only exist for DocumentGroups created by a Workflow. |
etchPacket -
EtchPacket
|
The parent EtchPacket . This will only exist for DocumentGroups created as part of an Etch signature packet. |
signers -
[Signer]
|
|
providerConfig -
JSON
|
|
finishPageConfig -
JSON
|
|
signaturePageConfig -
JSON
|
|
downloadZipURL -
String
|
The URL to download all documents as a zip file |
createdAt -
Date
|
|
updatedAt -
Date
|
|
completedAt -
Date
|
Timestamp of when all Signers have finished signing or when all forms have been filled when no signers. |
Example
{
"id": 123,
"eid": "nA1jH49FVUWrrE60hMbi",
"status": "completed",
"provider": "etch",
"currentRoutingStep": 987,
"files": [
{
"filename": Hello World.pdf,
"name": Hello World,
"type": pdf
}
],
"weldData": WeldData,
"etchPacket": EtchPacket,
"signers": [Signer],
"providerConfig": {},
"finishPageConfig": {},
"signaturePageConfig": {},
"downloadZipURL": "http://app.useanvil.com/download/nA1jH49FVUWrrE60hMbi.zip",
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"completedAt": "2021-11-04T21:19:02.316Z"
}
DocumentGroupPage
Field Name | Description |
---|---|
rowCount -
Int
|
Total number of rows found for the query before pagination |
pageCount -
Int
|
Total number of pages of results |
page -
Int
|
The requested page number |
pageSize -
Int
|
The requested number of rows per page |
items -
[DocumentGroup]
|
The actual records for the requested page |
Example
{
"rowCount": 20,
"pageCount": 2,
"page": 1,
"pageSize": 10,
"items": [DocumentGroup]
}
EtchFile
An object used by createEtchPacket
to specify a file. See the
Etch e-sign guide for more info.
Input Field | Description |
---|---|
id -
String!
|
An id string set when creating the |
title -
String
|
|
castEid -
String
|
|
file -
Upload
|
|
base64File -
Upload
|
|
fields -
[JSON!]
|
|
pageSizes -
[JSON!]
|
|
fontSize -
Int
|
|
textColor -
String
|
|
filename -
String
|
Filename set when creating the |
includeTimestamp -
Boolean
|
For generated PDFs, set to false to disable the "Generated at XXX" timestamp at the bottom of the document. |
logo -
JSON
|
For generated PDFs, you can specify a logo to be rendered at the top of the document. |
Example
{
"id": "xyz789",
"title": "xyz789",
"castEid": "xyz789",
"file": Upload,
"base64File": Upload,
"fields": [{}],
"pageSizes": [{}],
"fontSize": 987,
"textColor": "abc123",
"filename": "xyz789",
"includeTimestamp": false,
"logo": {}
}
EtchLog
Represents a single action taken by a user during the signing process. For example, an EtchLog
object will be created when a user signs, downloads a file, voids the packet, etc.
All actions with a short description:
accessed: Viewed
archived: Archived
completed: Signed & Completed
created: Created
download-csv-all: Downloaded CSV
download-csv-individual-file: Downloaded CSV File
download-file-individual: Downloaded File
download-files-zip: Downloaded Zip
emailed-completed: Emailed
emailed: Emailed
locked: Locked
pin-code-changed: Changed PIN
pin-code-failed: Access Failed
pin-code-set: Set PIN
pin-code-unset: Unset PIN
pin-code-verified: Access Verified
saved-form: Saved form
signed: Signed
unarchived: Unarchived
unlocked: Unlocked
upload-file-accessed: Accessed file
upload-file: Uploaded
voided: Voided
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
action -
String
|
The action taken. |
formattedLocation -
String
|
Location of the user taking the action. |
fileId -
String
|
String id, often a filename, of any file related to the action taken. |
metadata -
JSON
|
Any action-specific information. |
user -
User
|
The Anvil User who took this action, if applicable. |
signer -
Signer
|
The Signer who took the action, if applicable. |
createdAt -
Date
|
Example
{
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"action": "completed",
"formattedLocation": "San Francisco, CA",
"fileId": "some-form.pdf",
"metadata": {},
"user": User,
"signer": Signer,
"createdAt": "2022-05-04T21:19:02.462Z"
}
EtchPacket
An EtchPacket
represents a signature packet. EtchPackets
packets allow you to gather signatures from multiple signers on a collection of PDFs filled with your data (see payload
), and uploads such as images. See the
e-signature guide for usage.
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
name -
String
|
The name shown in the UI. |
status -
String
|
Possible values: draft , sent , delivered , partial , declined , voided , completed . |
isTest -
Boolean
|
true when it is a test packet. You will not be charged for test packets. Filled and signed files will be watermarked. |
containsFillData -
Boolean
|
true when payload contains data that will fill PDFs |
payload -
JSON
|
Data specified to fill PDFs in the packet. |
numberRemainingSigners -
Int
|
|
detailsURL -
String
|
URL to this EtchPacket in the dashboard. Any users in your organization can view this URL. |
webhookURL -
String
|
The specific webhook notification URL for this EtchPacket . We will POST to this URL when users take various actions. |
organization -
Organization
|
|
documentGroup -
DocumentGroup
|
A DocumentGroup contains the documents after they have been filled and sent out for signature. The DocumentGroup will only exist here when status != 'draft' , i.e when documents have been sent out for signature. See the DocumentGroup 's status for lifecycle information. |
etchTemplate -
EtchTemplate
|
The EtchTemplate holds configuration for signers and files in the packet. Each EtchPacket will have an EtchTemplate . |
userUploads -
[UserUpload]
|
Uploaded files like images included in the packet. |
etchLogEvents -
[EtchLog]
|
An array of actions during the signing process. Details actions when files are signed, downloaded, etc. |
webhookLogs -
[WebhookLog]
|
An array of webhook notification calls to your server related to this EtchPacket . Get the status codes, response times, and retry information from each WebhookLog . |
createdAt -
Date
|
|
updatedAt -
Date
|
|
archivedAt -
Date
|
Example
{
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "EtchPacket Name",
"status": "completed",
"isTest": true,
"containsFillData": true,
"payload": {
"myPDFId": {
"textColor": #000000,
"data": {"email": hello@example.com}
}
},
"numberRemainingSigners": 123,
"detailsURL": "https://app.useanvil.com/org/my-org/etch/nA1jH49FVUWrrE60hMbi",
"webhookURL": "https://yoursite.com/webhooks/anvil",
"organization": Organization,
"documentGroup": DocumentGroup,
"etchTemplate": EtchTemplate,
"userUploads": [UserUpload],
"etchLogEvents": [EtchLog],
"webhookLogs": [WebhookLog],
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2021-11-04T21:19:02.316Z"
}
EtchPacketPage
Field Name | Description |
---|---|
rowCount -
Int
|
Total number of rows found for the query before pagination |
pageCount -
Int
|
Total number of pages of results |
page -
Int
|
The requested page number |
pageSize -
Int
|
The requested number of rows per page |
items -
[EtchPacket]
|
The actual records for the requested page |
Example
{
"rowCount": 20,
"pageCount": 2,
"page": 1,
"pageSize": 10,
"items": [EtchPacket]
}
EtchTemplate
An EtchTemplate
holds configuration for a signature packet. You should not need to interact directly with an EtchTemplate
very much. See the
e-signature guide for more info on sending documents out for signatures.
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
name -
String
|
|
isFree -
Boolean
|
|
isRepeatable -
Boolean
|
|
config -
JSON
|
|
organization -
Organization
|
|
casts -
[Cast]
|
All Cast objects (fillable pdfs) included in this template. |
etchPackets -
[EtchPacket]
|
An array of EtchPackets created from this template. At this time, this will be a 1-to-1 relationship. |
userUploads -
[UserUpload]
|
|
createdAt -
Date
|
|
updatedAt -
Date
|
Example
{
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "EtchTemplate Name",
"isFree": true,
"isRepeatable": false,
"config": {},
"organization": Organization,
"casts": [Cast],
"etchPackets": [EtchPacket],
"userUploads": [UserUpload],
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z"
}
Float
The Float
scalar type represents signed double-precision fractional values as specified by
IEEE 754.
Example
987.65
Forge
A Forge
holds configuration for a single webform. A Forge
defines a webform's fields, the page fields are on, their types, webform logic, etc. Each Forge will be a member of only one Weld
(Workflow).
See our Workflow API guide for more info.
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
name -
String
|
|
slug -
String
|
|
isRequired -
Boolean
|
Is this forge required to complete the Workflow? |
config -
JSON
|
|
Arguments
|
|
fieldInfo -
JSON
|
A list of objects describing all the fields in this webform. The response is a more digestable way to get all the fields than digging in config . |
weld -
Weld
|
|
organization -
Organization
|
|
userUploads -
[UserUpload]
|
|
versionNumber -
Int
|
The current version number of this Forge |
createdAt -
Date
|
|
updatedAt -
Date
|
|
archivedAt -
Date
|
|
examplePayload -
JSON
|
Example payload to fill this webform. Shown on the "API information" page for this webform's Workflow. |
Example
{
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Forge Name",
"slug": "forge-name",
"isRequired": false,
"config": {},
"fieldInfo": {},
"weld": Weld,
"organization": Organization,
"userUploads": [UserUpload],
"versionNumber": 987,
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2022-05-04T21:19:02.316Z",
"examplePayload": {}
}
ForgeMap
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
forgeA -
Forge
|
|
forgeB -
Forge
|
|
config -
JSON
|
|
createdAt -
Date
|
|
updatedAt -
Date
|
Example
{
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"forgeA": Forge,
"forgeB": Forge,
"config": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z"
}
ForgePage
Field Name | Description |
---|---|
rowCount -
Int
|
Total number of rows found for the query before pagination |
pageCount -
Int
|
Total number of pages of results |
page -
Int
|
The requested page number |
pageSize -
Int
|
The requested number of rows per page |
items -
[Forge]
|
The actual records for the requested page |
Example
{
"rowCount": 20,
"pageCount": 2,
"page": 1,
"pageSize": 10,
"items": [Forge]
}
ForgeVersion
Field Name | Description |
---|---|
id -
Int!
|
|
number -
Int
|
|
updatedColumns -
[String]
|
|
name -
String
|
|
slug -
String
|
|
config -
JSON
|
|
createdAt -
Date
|
|
updatedAt -
Date
|
|
user -
User
|
Example
{
"id": 987,
"number": 123,
"updatedColumns": ["xyz789"],
"name": "ForgeVersion Name",
"slug": "forgeversion-name",
"config": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"user": User
}
ForgeVersionPage
Field Name | Description |
---|---|
rowCount -
Int
|
Total number of rows found for the query before pagination |
pageCount -
Int
|
Total number of pages of results |
page -
Int
|
The requested page number |
pageSize -
Int
|
The requested number of rows per page |
items -
[ForgeVersion]
|
The actual records for the requested page |
Example
{
"rowCount": 20,
"pageCount": 2,
"page": 1,
"pageSize": 10,
"items": [ForgeVersion]
}
Int
The Int
scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
Example
987
Organization
An entity that encapsulates a set of Workflows, templates, users, etc.
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
name -
String
|
|
logo -
JSON
|
|
logoURL -
String
|
URL to your logo. You can update this on your organization settings page. |
parentOrganization -
Organization
|
|
billingEmail -
String
|
The email used for all billing related correspondence. |
supportEmail -
String
|
Your organization's support email address. Used as the reply-to address for emails sent to your users by Anvil. |
slug -
String
|
|
users -
[User]
|
|
adminUsers -
[User]
|
|
organizationUsers -
[OrganizationUser]
|
|
organizationUserInvites -
[OrganizationUserInvite]
|
|
isPersonal -
Boolean
|
|
isInternal -
Boolean
|
|
isSubscribed -
Boolean
|
|
useTestSignatureProvider -
Boolean
|
|
config -
JSON
|
|
createdAt -
Date
|
|
updatedAt -
Date
|
|
welds -
[Weld]
|
|
etchTemplates -
[EtchTemplate]
|
|
etchPackets -
EtchPacketPage
|
|
weldGroups -
[WeldGroup]
|
|
forges -
[Forge]
|
|
Arguments
|
|
forgeMaps -
[ForgeMap]
|
|
casts -
[Cast]
|
|
paymentMethods -
[PaymentMethod]
|
|
webhook -
Webhook
|
|
webhookActions -
[WebhookAction]
|
|
webhookLogs -
WebhookLogPage
|
|
childOrganizations -
[Organization]
|
|
subscribedPlanFeatures -
JSON
|
|
subscriptionActivity -
JSON
|
|
currentInvoice -
Invoice
|
|
totalUsedUnits -
Int
|
|
weldCompleteWebhookStats -
JSON
|
|
weldCompleteStats -
JSON
|
|
etchCompleteStats -
JSON
|
|
remainingSubmissions -
JSON
|
|
remainingEtchCompletions -
JSON
|
|
signatureProviderType -
String
|
|
availableSignatureProviderTypes -
[String]
|
Example
{
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "Organization Name",
"logo": {},
"logoURL": "https://app.useanvil.com/uploads/nA1jH49FVUWrrE60hMbi.png",
"parentOrganization": Organization,
"billingEmail": "user@domain.com",
"supportEmail": "user@domain.com",
"slug": "organization-name",
"users": [User],
"adminUsers": [User],
"organizationUsers": [OrganizationUser],
"organizationUserInvites": [OrganizationUserInvite],
"isPersonal": false,
"isInternal": false,
"isSubscribed": false,
"useTestSignatureProvider": true,
"config": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"welds": [Weld],
"etchTemplates": [EtchTemplate],
"etchPackets": EtchPacketPage,
"weldGroups": [WeldGroup],
"forges": [Forge],
"forgeMaps": [ForgeMap],
"casts": [Cast],
"paymentMethods": [PaymentMethod],
"webhook": Webhook,
"webhookActions": [WebhookAction],
"webhookLogs": WebhookLogPage,
"childOrganizations": [Organization],
"subscribedPlanFeatures": {},
"subscriptionActivity": {},
"currentInvoice": Invoice,
"totalUsedUnits": 987,
"weldCompleteWebhookStats": {},
"weldCompleteStats": {},
"etchCompleteStats": {},
"remainingSubmissions": {},
"remainingEtchCompletions": {},
"signatureProviderType": "abc123",
"availableSignatureProviderTypes": ["abc123"]
}
OrganizationPage
Field Name | Description |
---|---|
rowCount -
Int
|
Total number of rows found for the query before pagination |
pageCount -
Int
|
Total number of pages of results |
page -
Int
|
The requested page number |
pageSize -
Int
|
The requested number of rows per page |
items -
[Organization]
|
The actual records for the requested page |
Example
{
"rowCount": 20,
"pageCount": 2,
"page": 1,
"pageSize": 10,
"items": [Organization]
}
OrganizationUser
Field Name | Description |
---|---|
id -
Int!
|
|
role -
String
|
Role of this user within your org. Possible values: viewer, editor, billingAdmin, admin |
externalId -
String
|
A place to store your external system's unique identifier for this User. |
user -
User
|
|
organization -
Organization
|
|
createdAt -
Date
|
|
updatedAt -
Date
|
Example
{
"id": 987,
"role": "admin",
"externalId": "abc123",
"user": User,
"organization": Organization,
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z"
}
OrganizationUserInvite
An invite sent for a user to join your organization. Once accepted, an OrganizationUser
will be created.
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
role -
String
|
Role of this user within your org. Possible values: viewer, editor, billingAdmin, admin |
externalId -
String
|
A place to store your external system's unique identifier for this User. |
name -
String
|
|
email -
String
|
|
organization -
Organization
|
|
acceptedAt -
Date
|
|
revokedAt -
Date
|
|
createdAt -
Date
|
|
updatedAt -
Date
|
Example
{
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"role": "admin",
"externalId": "xyz789",
"name": "OrganizationUserInvite Name",
"email": "user@domain.com",
"organization": Organization,
"acceptedAt": "2021-11-04T21:19:02.316Z",
"revokedAt": "2021-11-04T21:19:02.316Z",
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z"
}
PaymentMethod
Field Name | Description |
---|---|
id -
String!
|
|
type -
String
|
|
last4 -
String
|
|
providerName -
String
|
|
status -
String
|
|
expMonth -
Int
|
|
expYear -
Int
|
|
isDefault -
Boolean
|
Example
{
"id": "abc123",
"type": "abc123",
"last4": "abc123",
"providerName": "abc123",
"status": "xyz789",
"expMonth": 123,
"expYear": 987,
"isDefault": false
}
Signer
Represents a single signer. See Signer.status
to indicate where a signer is in the signing process.
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
aliasId -
String
|
The Signer 's user-specified id set on packet creation. |
status -
String
|
Possible values: sent , viewed , delivered , voided , autoresponded , faxpending , created , skipped , declined , idCheckFailed , completed |
provider -
String
|
Possible values: etch or docusign . |
name -
String
|
|
email -
String
|
|
routingOrder -
Int
|
Numeric step in the signing process where this user signs. Signers are routed in sorted order. |
signActionType -
String
|
Indicates the method by which the user signs. Possible values: email , embedded , or in-person . |
user -
User
|
A Anvil User associated with this signer. |
submission -
Submission
|
An associated Submission . This wil exist for signers who sign at the end of a Workflow. |
documentGroup -
DocumentGroup
|
A DocumentGroup references all signers and the documents after they have been filled and sent out for signature. See the DocumentGroup 's status for lifecycle information. |
signerTokens -
[SignerToken]
|
Get all SignerTokens this signer has available. These can tell you when a signer's token will be expiring, which token was used for signing, etc. |
createdAt -
Date
|
|
updatedAt -
Date
|
|
completedAt -
Date
|
Timestamp when the Signer has finished signing. |
Example
{
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"aliasId": "signer1",
"status": "sent",
"provider": "etch",
"name": "Signer Name",
"email": "user@domain.com",
"routingOrder": 123,
"signActionType": "email",
"user": User,
"submission": Submission,
"documentGroup": DocumentGroup,
"signerTokens": [SignerToken],
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"completedAt": "2021-11-04T21:19:02.316Z"
}
SignerPage
Field Name | Description |
---|---|
rowCount -
Int
|
Total number of rows found for the query before pagination |
pageCount -
Int
|
Total number of pages of results |
page -
Int
|
The requested page number |
pageSize -
Int
|
The requested number of rows per page |
items -
[Signer]
|
The actual records for the requested page |
Example
{
"rowCount": 20,
"pageCount": 2,
"page": 1,
"pageSize": 10,
"items": [Signer]
}
SignerToken
Represents a token used to sign documents. See Signer.signerTokens
to fetch them.
We do not expose the token itself, but you can use this object to get an idea of what tokens the signer has available, whether they are valid, and their expiration dates (validUntil
).
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
type -
String
|
Type of token issued. Tells you how the token was issued. Values: api , sign-now , notify-signer , view |
validUntil -
Date
|
Date of token expiration. |
valid -
Boolean
|
true when this token is valid and can be used to sign. |
invalidatedAt -
Date
|
Date when the token was invalidated if explicitly invalidated. If invalid due to expiration, use validUntil . |
hasSigned -
Boolean
|
true when this token was used to sign the Signer 's documents. |
signedAt -
Date
|
Date when the token was used to sign documents. |
signer -
Signer
|
Example
{
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"type": "api",
"validUntil": "2022-05-04T21:19:02.316Z",
"valid": true,
"invalidatedAt": "2022-05-04T21:19:02.316Z",
"hasSigned": true,
"signedAt": "2022-05-04T21:19:02.316Z",
"signer": Signer
}
String
The String
scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
Submission
An instance of a Forge
. A Submission
holds the data for one webform submission on a particular Forge
.
See our Workflow API guide for more info.
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
status -
String
|
Possible values: created , in-progress , waiting-to-sign , user-signed-and-waiting , users-turn-to-sign-ui , users-turn-to-sign-email , someone-else-signed-and-waiting , completed |
resolvedPayload -
JSON
|
The payload resolved with field aliases and field information. If you need to fetch the submission payload, use this. |
payload -
JSON
|
The raw payload |
payloadValue -
JSON
|
The raw payload without types |
currentStep -
Int
|
|
totalSteps -
Int
|
|
continueURL -
String
|
URL to the next step in this webform. |
weldData -
WeldData
|
|
forge -
Forge
|
|
user -
User
|
|
signer -
Signer
|
|
reviewData -
JSON
|
|
completionPercentage -
Float
|
|
isExcluded -
Boolean
|
|
touchedByUser -
Boolean
|
|
requestMeta -
JSON
|
|
createdAt -
Date
|
|
updatedAt -
Date
|
|
completedAt -
Date
|
Example
{
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"status": "in-progress",
"resolvedPayload": {
"email": {
"id": f162136372633517,
"aliasId": email,
"type": email,
"label": Email,
"value": hello@example.com
}
},
"payload": {
"f162136372633517": {
"type": email,
"value": hello@example.com
}
},
"payloadValue": {"f162136372633517": hello@example.com},
"currentStep": 123,
"totalSteps": 987,
"continueURL": "https://app.useanvil.com/form/demo/my-form/nA1jH49FVUWrrE60hMbi",
"weldData": WeldData,
"forge": Forge,
"user": User,
"signer": Signer,
"reviewData": {},
"completionPercentage": 33.33,
"isExcluded": true,
"touchedByUser": false,
"requestMeta": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"completedAt": "2022-05-04T21:19:02.316Z"
}
SubmissionPage
Field Name | Description |
---|---|
rowCount -
Int
|
Total number of rows found for the query before pagination |
pageCount -
Int
|
Total number of pages of results |
page -
Int
|
The requested page number |
pageSize -
Int
|
The requested number of rows per page |
items -
[Submission]
|
The actual records for the requested page |
Example
{
"rowCount": 20,
"pageCount": 2,
"page": 1,
"pageSize": 10,
"items": [Submission]
}
Upload
The Upload
scalar type represents a file upload. This can be either an object with data
, mimetype
, and filename
keys, or multipart request with a structure described by the
GraphQL multipart requests specification.
While sending up an object structure described in the example is considerably simpler than the multipart spec, we only support request payloads of up to 1MB. Content-Type application/json
requests with sizes over the 1MB size will result in a 419 Request Too Large
response.
If your request is larger than 1MB, use a multipart request. A very basic multipart GraphQL + Upload
example using curl
:
curl https://graphql.useanvil.com \ -F operations='[{ "query": "CreateCast ($file: Upload!) { createCast(file: $file) { id } }", "variables": { "file": null } }]' \
-F map='{ "0": ["0.variables.file"] }' \
-F 0=@my-file.pdf
Our Node API Client uses multipart uploads by default.
Example
{
"data": base64filestring===,
"mimetype": application/pdf,
"filename": my-file.pdf
}
User
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
email -
String
|
|
name -
String
|
|
firstName -
String
|
|
lastName -
String
|
|
role -
String
|
What type of role the User has. Either user or api . |
verifiedEmail -
Boolean
|
|
preferences -
UserPreferences!
|
|
organizations -
[Organization]
|
|
organizationUsers -
[OrganizationUser]
|
|
createdAt -
Date
|
|
updatedAt -
Date
|
|
extra -
JSON
|
|
numSentEtchPackets -
Int
|
Example
{
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"email": "user@domain.com",
"name": "User Name",
"firstName": "Bobby",
"lastName": "Jones",
"role": "user",
"verifiedEmail": true,
"preferences": UserPreferences,
"organizations": [Organization],
"organizationUsers": [OrganizationUser],
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"extra": {},
"numSentEtchPackets": 987
}
UserPage
Field Name | Description |
---|---|
rowCount -
Int
|
Total number of rows found for the query before pagination |
pageCount -
Int
|
Total number of pages of results |
page -
Int
|
The requested page number |
pageSize -
Int
|
The requested number of rows per page |
items -
[User]
|
The actual records for the requested page |
Example
{
"rowCount": 20,
"pageCount": 2,
"page": 1,
"pageSize": 10,
"items": [User]
}
UserUpload
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
location -
String
|
|
user -
User
|
|
etchPacket -
EtchPacket
|
|
weldData -
WeldData
|
|
forge -
Forge
|
|
metadata -
JSON
|
|
createdAt -
Date
|
|
updatedAt -
Date
|
Example
{
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"location": "abc123",
"user": User,
"etchPacket": EtchPacket,
"weldData": WeldData,
"forge": Forge,
"metadata": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z"
}
Webhook
A Webhook
represents a webhook URL. Anvil will POST to webhook URLs on specific actions. Both organization-wide and per-object webhook URLs are represented by this object. See the
webhooks guide for more information.
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
type -
String
|
Webhook URLs that accept notifications for any object will be prod . Per-object webhook URLs will have type adhoc . |
status -
String
|
Prossible values: active or inactive . |
url -
String
|
The URL Anvil will POST to. |
token -
String
|
Use this token to make sure the request is from Anvil. |
webhookActions -
[WebhookAction]
|
|
creationUser -
User
|
|
organization -
Organization
|
|
createdAt -
Date
|
|
updatedAt -
Date
|
Example
{
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"type": "prod",
"status": "active",
"url": "https://domain.com/page.html",
"token": "xyz789",
"webhookActions": [WebhookAction],
"creationUser": User,
"organization": Organization,
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z"
}
WebhookAction
A model that represents a subscription to actions on other objects in our system that would trigger a
Webhook
call.
Field Name | Description |
---|---|
eid -
String!
|
|
webhook -
Webhook!
|
|
action -
String!
|
|
objectEid -
String
|
|
objectType -
String
|
|
config -
JSON
|
|
createdAt -
Date!
|
|
updatedAt -
Date!
|
|
creationUser -
User!
|
Example
{
"eid": "kQp2qd9FVUWrrE60hMbi",
"webhook": Webhook,
"action": "xyz789",
"objectEid": "kQp2qd9FVUWrrE60hMbi",
"objectType": "xyz789",
"config": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"creationUser": User
}
WebhookLog
A WebhookLog
represents a single webhook call to your server. See the
webhooks guide for more information.
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
action -
String
|
The webhook action type, e.g. signerComplete . |
isError -
Boolean
|
true when this call was considered an error. It will be an error when the status code is >= 400, or the request timed out. |
isRetry -
Boolean
|
true when this call was a retry of a previous call. |
statusCode -
Int
|
The status code returned by your server for this call. |
millisecondsToFinish -
Int
|
Time it took to complete the webhook request. |
objectEid -
String
|
|
rootObjectType -
String
|
|
rootObjectURL -
String
|
Dashboard URL to the object that triggered the webhook event. e.g. it will link to a Workflow submission or an etch packet. |
objectMetadata -
JSON
|
|
organization -
Organization
|
|
originalWebhookLog -
WebhookLog
|
If this call was a retry, originalWebhookLog will be WebhookLog that was retried. |
createdAt -
Date
|
Example
{
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"action": "weldComplete",
"isError": false,
"isRetry": true,
"statusCode": 987,
"millisecondsToFinish": 123,
"objectEid": "kQp2qd9FVUWrrE60hMbi",
"rootObjectType": "WeldData",
"rootObjectURL": "https://app.useanvil.com/org/my-org/w/my-workflow/iXLRleX92vhwF8cIhsk2",
"objectMetadata": {},
"organization": Organization,
"originalWebhookLog": WebhookLog,
"createdAt": "2022-05-04T21:19:02.462Z"
}
WebhookLogPage
Field Name | Description |
---|---|
rowCount -
Int
|
Total number of rows found for the query before pagination |
pageCount -
Int
|
Total number of pages of results |
page -
Int
|
The requested page number |
pageSize -
Int
|
The requested number of rows per page |
items -
[WebhookLog]
|
The actual records for the requested page |
Example
{
"rowCount": 20,
"pageCount": 2,
"page": 1,
"pageSize": 10,
"items": [WebhookLog]
}
Weld
A Weld is a Workflow. It holds the configuration that combines one or more Forge
objects with zero or more Cast
objects to create a Workflow.
See our Workflow API guide for more info.
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
slug -
String
|
|
name -
String
|
|
visibility -
String
|
|
config -
JSON
|
Config object specifying files output, signers, etc. |
Arguments
Only root level keys specified here will be returned. When omitted, all keys will be returned. |
|
organization -
Organization
|
|
hasSigners -
Boolean
|
|
forges -
[Forge]
|
|
Arguments
|
|
casts -
[Cast]
|
|
versionNumber -
Int
|
Current version number of this weld |
weldGroups -
[WeldGroup]
|
|
weldDatas -
WeldDataPage
|
Fetch all the Weld 's WeldData s (Workflow submissions) |
signatureProviderType -
String
|
|
availableSignatureProviderTypes -
[String]
|
|
remainingSubmissions -
JSON
|
|
createdAt -
Date
|
|
updatedAt -
Date
|
|
archivedAt -
Date
|
|
expiresAt -
Date
|
Example
{
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"slug": "weld-name",
"name": "Weld Name",
"visibility": "live",
"config": {},
"organization": Organization,
"hasSigners": true,
"forges": [Forge],
"casts": [Cast],
"versionNumber": 987,
"weldGroups": [WeldGroup],
"weldDatas": WeldDataPage,
"signatureProviderType": "etch",
"availableSignatureProviderTypes": [
etch,
docusign
],
"remainingSubmissions": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2022-05-04T21:19:02.316Z",
"expiresAt": "2022-05-04T21:19:02.316Z"
}
WeldData
An instance of a Weld
. You can think of it as a "workflow submission". A WeldData
references Submission
s for all the Forge
s (webforms) in the related Weld
(workflow).
See our workflow API guide for more info.
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
displayTitle -
String
|
The title displayed in the UI. |
status -
String
|
Possible values: created , in-progress , ready-to-sign , awaiting-signatures , declined , completed |
isTest -
Boolean
|
true when it is a test workflow submission. You will not be charged for signatures on test submissions, and they will not count toward your monthly completed workflows. |
isExpired -
Boolean
|
This WeldData has expired, either by passing the expiredAt date, or by being locked. |
isComplete -
Boolean
|
true when all forms in the workflow have been filled. There may be signers who need to sign. |
isCompleteAndSigned -
Boolean
|
true when status is completed : All forms have been filled, all signers have signed. |
continueURL -
String
|
URL to the next form to be filled by the user. Use this after WeldData creation to get the URL to the form that should be filled first. |
webhookURL -
String
|
The specific webhook notification URL for this WeldData . We will POST to this URL when users take various actions. |
completionPercentage -
Float
|
How complete is this workflow submission. Will be a value between 0 and 1. |
numberRemainingSigners -
Int
|
|
payloadCanBeUpdated -
Boolean
|
|
hasSigners -
Boolean
|
|
nextSigner -
Signer
|
|
hasPin -
Boolean
|
|
pin -
String
|
|
agents -
JSON
|
|
files -
[JSON]
|
A file listing of all files available in the WeldData . If there is a DocumentGroup , this will be equal to DocumentGroup.files . |
excludedFiles -
[JSON]
|
A file listing of all files excluded from the signing process. |
weld -
Weld
|
The workflow this WeldData is related to. |
submissions -
[Submission]
|
An array of all the underlying Submission objects holding data from each webform. |
documentGroup -
DocumentGroup
|
A DocumentGroup contains the documents after they have been filled and sent out for signature. The DocumentGroup will only exist here when that documents have been sent out for signature, or in the case of a workflow with no signers, when the workflow is completely finished. See the DocumentGroup 's status for lifecycle information. |
webhookLogs -
[WebhookLog]
|
An array of webhook notification calls to your server related to this WeldData . Get the status codes, response times, and retry information from each WebhookLog . |
etchLogEvents -
[EtchLog]
|
An array of actions during the signing process when using Anvil's Etch as the signature provider. These objects detail actions when files are signed, downloaded, etc. |
weldDataLogEvents -
[WeldDataLog]
|
An array of actions taken during the form filling process. |
userUploads -
[UserUpload]
|
An array of files uploaded by users during the webform filling process. |
forgesRequiringCompletion -
[Forge]
|
|
weldDataGroup -
WeldDataGroup
|
|
createdAt -
Date
|
|
updatedAt -
Date
|
When a column on the WeldData itself was updated. |
dataUpdatedAt -
Date
|
When a the data in any child Submission was last updated. |
expiresAt -
Date
|
|
archivedAt -
Date
|
Example
{
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"displayTitle": "Sally's workflow submission",
"status": "in-progress",
"isTest": true,
"isExpired": false,
"isComplete": false,
"isCompleteAndSigned": false,
"continueURL": "https://app.useanvil.com/form/demo/my-form/nA1jH49FVUWrrE60hMbi",
"webhookURL": "https://yoursite.com/webhooks/anvil",
"completionPercentage": 0.2,
"numberRemainingSigners": 987,
"payloadCanBeUpdated": true,
"hasSigners": false,
"nextSigner": Signer,
"hasPin": true,
"pin": "9876",
"agents": {},
"files": [
{
"filename": Hello World.pdf,
"name": Hello World,
"type": pdf
}
],
"excludedFiles": [
{
"filename": Dont Sign Me.pdf,
"name": Don't sign this doc,
"type": pdf
}
],
"weld": Weld,
"submissions": [Submission],
"documentGroup": DocumentGroup,
"webhookLogs": [WebhookLog],
"etchLogEvents": [EtchLog],
"weldDataLogEvents": [WeldDataLog],
"userUploads": [UserUpload],
"forgesRequiringCompletion": [Forge],
"weldDataGroup": WeldDataGroup,
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"dataUpdatedAt": "2022-05-04T21:19:02.316Z",
"expiresAt": "2022-05-04T21:19:02.316Z",
"archivedAt": "2022-05-04T21:19:02.316Z"
}
WeldDataGroup
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
title -
String
|
|
isTest -
Boolean
|
|
dataUpdatedAt -
Date
|
|
weldGroup -
WeldGroup
|
|
weldDatas -
[WeldData]
|
|
Arguments
|
|
createdAt -
Date
|
|
updatedAt -
Date
|
|
archivedAt -
Date
|
Example
{
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"title": "WeldDataGroup Title",
"isTest": true,
"dataUpdatedAt": "2021-11-04T21:19:02.316Z",
"weldGroup": WeldGroup,
"weldDatas": [WeldData],
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"archivedAt": "2021-11-04T21:19:02.316Z"
}
WeldDataGroupPage
Field Name | Description |
---|---|
rowCount -
Int
|
Total number of rows found for the query before pagination |
pageCount -
Int
|
Total number of pages of results |
page -
Int
|
The requested page number |
pageSize -
Int
|
The requested number of rows per page |
items -
[WeldDataGroup]
|
The actual records for the requested page |
Example
{
"rowCount": 20,
"pageCount": 2,
"page": 1,
"pageSize": 10,
"items": [WeldDataGroup]
}
WeldDataLog
Represents a single action taken by a user while filling a webform within a Workflow. For example, a WeldDataLog
object will be created when a user completes a webform, downloads a file, voids the packet associated packet, etc.
All actions with a short description:
accessed: Viewed
archived: Archived
completed: Completed Form
created: Created
download-csv-all: Downloaded
download-csv-individual-file: Downloaded
download-file-individual: Downloaded File
download-files-zip: Downloaded Zip
emailed-completed: Emailed
emailed: Emailed
locked: Locked
pin-code-changed: Changed PIN
pin-code-failed: Access Failed
pin-code-set: Set PIN
pin-code-unset: Unset PIN
pin-code-verified: Access Verified
saved-form: Saved form
signed: Signed
unarchived: Unarchived
unlocked: Unlocked
upload-file-accessed: Accessed file
upload-file: Uploaded
voided: Voided
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
action -
String
|
The action taken. |
formattedLocation -
String
|
Location of the user taking the action. |
metadata -
JSON
|
Any action-specific information. |
user -
User
|
The Anvil User who took this action, if applicable. |
weldData -
WeldData
|
|
submission -
Submission
|
|
createdAt -
Date
|
Example
{
"id": 987,
"eid": "kQp2qd9FVUWrrE60hMbi",
"action": "completed",
"formattedLocation": "San Francisco, CA",
"metadata": {},
"user": User,
"weldData": WeldData,
"submission": Submission,
"createdAt": "2022-05-04T21:19:02.462Z"
}
WeldDataPage
Field Name | Description |
---|---|
rowCount -
Int
|
Total number of rows found for the query before pagination |
pageCount -
Int
|
Total number of pages of results |
page -
Int
|
The requested page number |
pageSize -
Int
|
The requested number of rows per page |
items -
[WeldData]
|
The actual records for the requested page |
Example
{
"rowCount": 20,
"pageCount": 2,
"page": 1,
"pageSize": 10,
"items": [WeldData]
}
WeldGroup
Field Name | Description |
---|---|
id -
Int!
|
|
eid -
String
|
|
name -
String
|
|
slug -
String
|
|
organization -
Organization
|
|
welds -
[Weld]
|
|
Arguments
|
|
weldDataGroups -
WeldDataGroupPage
|
|
createdAt -
Date
|
|
updatedAt -
Date
|
Example
{
"id": 123,
"eid": "kQp2qd9FVUWrrE60hMbi",
"name": "WeldGroup Name",
"slug": "weldgroup-name",
"organization": Organization,
"welds": [Weld],
"weldDataGroups": WeldDataGroupPage,
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z"
}
WeldPage
Field Name | Description |
---|---|
rowCount -
Int
|
Total number of rows found for the query before pagination |
pageCount -
Int
|
Total number of pages of results |
page -
Int
|
The requested page number |
pageSize -
Int
|
The requested number of rows per page |
items -
[Weld]
|
The actual records for the requested page |
Example
{
"rowCount": 20,
"pageCount": 2,
"page": 1,
"pageSize": 10,
"items": [Weld]
}
WeldVersion
Field Name | Description |
---|---|
id -
Int!
|
|
number -
Int
|
|
updatedColumns -
[String]
|
|
name -
String
|
|
slug -
String
|
|
config -
JSON
|
|
createdAt -
Date
|
|
updatedAt -
Date
|
|
user -
User
|
Example
{
"id": 123,
"number": 123,
"updatedColumns": ["abc123"],
"name": "WeldVersion Name",
"slug": "weldversion-name",
"config": {},
"createdAt": "2022-05-04T21:19:02.462Z",
"updatedAt": "2022-05-04T21:19:02.462Z",
"user": User
}
WeldVersionPage
Field Name | Description |
---|---|
rowCount -
Int
|
Total number of rows found for the query before pagination |
pageCount -
Int
|
Total number of pages of results |
page -
Int
|
The requested page number |
pageSize -
Int
|
The requested number of rows per page |
items -
[WeldVersion]
|
The actual records for the requested page |
Example
{
"rowCount": 20,
"pageCount": 2,
"page": 1,
"pageSize": 10,
"items": [WeldVersion]
}