List Agreements
GET/agreements
Retrieves a paginated list of all agreements created by the authenticated client
Request
Query Parameters
Default value: 50
The number of agreements to return. Max 100
Default value: 1
The page of agreements to return. Default 1
Possible values: [desc
, asc
]
The agreements are ordered by date in descending order by default.
Possible values: [draft
, pending
, fulfilled
, cancelled
, generating
, failed_to_generate
, open
]
The status of the agreements to return.
Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?)?Z?$
The earliest creation date of the agreements to return.
Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?)?Z?$
The latest creation date of the agreements to return.
The lookup key of the agreements to return
Responses
- 200
- 400
GET /agreements Successful response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- MOD1
- MOD2
- MOD3
- MOD1
- MOD2
- MOD3
- Array [
- ]
- MOD1
- MOD2
- MOD3
- Array [
- ]
- Array [
- MOD1
- 118cb3b11b8a1f3b6b1e60a89f96a8be9da32a0f
- MOD3
- Array [
- ]
- MOD1
- MOD3
- Array [
- ]
- ]
- MOD1
- MOD2
- MOD3
- MOD1
- MOD2
- MOD3
- Array [
- ]
- Array [
- MOD1
- MOD2
- ]
- MOD1
- MOD2
- MOD3
- MOD1
- MOD2
- ]
Possible values: [1.0
]
The version of the response schema
Possible values: [paginated_list
]
A paginated list of the agreement resource.
Possible values: [agreement
]
Data contains the agreement resource.
data object[]required
The resource data
The unique identifier of the agreement
Possible values: [agreement
]
Indicates if the agreement is created using a development client
Possible values: [draft
, pending
, fulfilled
, cancelled
, generating
, failed_to_generate
, open
]
The status of the agreement
Possible values: [SES
, AES
, QES
]
The minimum trust level for the signatures.
If the agreement is in a cancelled state, this will be a short description on the reason why, otherwise it will be null.
theme object required
string
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the theme resource.
Possible values: [theme
]
Data contains the theme resource.
data objectrequired
The resource data.
The unique identifier of the theme
Possible values: [theme
]
logo objectrequired
The logo of the theme. This is displayed to the user in all communication and touch points.
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the file resource.
Possible values: [file
]
Data contains the file resource.
data objectrequired
The resource data.
The unique identifier of the file
Possible values: [file
]
Possible values: non-empty
The complete filename including the file extension
Possible values: non-empty
The mime type of the file
The signed read url of the file
metadata object
A provided lookup key provided by you to help you identify the file.
UTC datetime ISO string
UTC datetime ISO string
icon objectrequired
The icon of the theme. This is used for the favicon.
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the file resource.
Possible values: [file
]
Data contains the file resource.
data objectrequired
The resource data.
The unique identifier of the file
Possible values: [file
]
Possible values: non-empty
The complete filename including the file extension
Possible values: non-empty
The mime type of the file
The signed read url of the file
metadata object
A provided lookup key provided by you to help you identify the file.
UTC datetime ISO string
UTC datetime ISO string
Default value: #000000
The primary color used to create the color palette in the signing room.
metadata object
A provided lookup key provided by you to help you identify the theme.
UTC datetime ISO string
UTC datetime ISO string
string
issuer objectrequired
The issuer of the agreement
The name of the issuer. Required if no email is provided.
The email of the issuer. Required if agreemnt is configured to send emails.
Possible values: [signer
, approver
, observer
]
The role of the issuer in the agreement process.
If the issuer is a signer or approver this is the ID of the related participant.
The URL to the signing room for the issuer. Only available after the agreement has been finalized for signing.
participants object required
string
Possible values: [1.0
]
The version of the response schema
Possible values: [list
]
A non-paginated list of the participant resource.
Possible values: [participant
]
Data contains the participant resource.
string
signing_groups object
string
Possible values: [1.0
]
The version of the response schema
Possible values: [list
]
A non-paginated list of the signing group resource.
Possible values: [signing_group
]
Data contains the signing group resource.
data object[]required
The unique identifier of the signing group
Possible values: [signing_group
]
The name of the signing group
Possible values: [draft
, pending
, fulfilled
]
The status of the signing group
Possible values: >= 5e-324
and <= 1.7976931348623157e+308
The queue number of the signing group
participants object required
string
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the signing_group resource.
Possible values: [signing_group
]
Data contains the signing_group resource.
data objectrequired
The resource data.
The unique identifier of the signing group
Possible values: [signing_group
]
The name of the signing group
Possible values: [draft
, pending
, fulfilled
]
The status of the signing group
Possible values: >= 5e-324
and <= 1.7976931348623157e+308
The queue number of the signing group
participants object required
string
string
The unique identifier of the agreement this signing group belongs to
UTC datetime ISO string
UTC datetime ISO string
string
The unique identifier of the agreement this signing group belongs to
UTC datetime ISO string
UTC datetime ISO string
string
documents object
original_documents objectrequired
main object required
The main document which will be signed.
string
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the file resource.
Possible values: [file
]
Data contains the file resource.
data objectrequired
The resource data.
The unique identifier of the file
Possible values: [file
]
Possible values: non-empty
The complete filename including the file extension
Possible values: non-empty
The mime type of the file
The signed read url of the file
metadata object
A provided lookup key provided by you to help you identify the file.
UTC datetime ISO string
UTC datetime ISO string
string
attachments object
string
Possible values: [1.0
]
The version of the response schema
Possible values: [list
]
A non-paginated list of the attachment resource.
Possible values: [attachment
]
Data contains the attachment resource.
data object[]required
The unique identifier of the attachment
Possible values: [attachment
]
The unique identifier of the agreement which this attachment belongs to
Possible values: <= 9007199254740991
The order of this attachment relative to the other attachments
file object required
string
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the file resource.
Possible values: [file
]
Data contains the file resource.
data objectrequired
The resource data.
The unique identifier of the file
Possible values: [file
]
Possible values: non-empty
The complete filename including the file extension
Possible values: non-empty
The mime type of the file
The signed read url of the file
metadata object
A provided lookup key provided by you to help you identify the file.
UTC datetime ISO string
UTC datetime ISO string
UTC datetime ISO string
UTC datetime ISO string
string
signed_document object required
The finalized and signed document.
string
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the file resource.
Possible values: [file
]
Data contains the file resource.
data objectrequired
The resource data.
The unique identifier of the file
Possible values: [file
]
Possible values: non-empty
The complete filename including the file extension
Possible values: non-empty
The mime type of the file
The signed read url of the file
metadata object
A provided lookup key provided by you to help you identify the file.
UTC datetime ISO string
UTC datetime ISO string
string
signing_order objectrequired
communication objectrequired
default_locale object
string
string
metadata object
A provided lookup key provided by you to help you identify the agreement.
A provided callback url to refer the participants back to post successful action.
UTC datetime ISO string
UTC datetime ISO string
pagination objectrequired
Contains the pagination meta data
Possible values: <= 9007199254740991
The maximum number of items per page
Possible values: <= 9007199254740991
The total number of pages
Possible values: <= 9007199254740991
The current page number
Possible values: <= 9007199254740991
The total number of results
{
"version": "1.0",
"result_type": "paginated_list",
"resource_type": "agreement",
"data": [
{
"id": "cwcd42fqscmorwntephexample",
"resource_type": "agreement",
"test_mode": true,
"status": "draft",
"trust_level": "SES",
"cancellation_reason": null,
"theme": "cxv28xqgqktyoajmddmexample",
"issuer": {
"name": "John Doe",
"email": "example@example.com",
"role": "signer",
"participant_id": "cuk8n9ci5tuyz5tptklexample",
"signing_room_url": "https://www.zigned.se/sign/cnwrigexrrglugtaakzexample/cpi2oci7tfl8eck0fagexample"
},
"participants": [
"c8zp9jlfcrkwkocc0drexample",
"cbs0juz35a5knxxmf0sexample",
"ciyqqr541jrr48kgj9uexample"
],
"signing_groups": [
"c8zp9jlfcrkwkocc0drexample",
"cbs0juz35a5knxxmf0sexample",
"ciyqqr541jrr48kgj9uexample"
],
"documents": {
"original_documents": {
"main": "cbg4jfmjjyxtge1ehebexample",
"attachments": [
"c8zp9jlfcrkwkocc0drexample",
"cbs0juz35a5knxxmf0sexample",
"ciyqqr541jrr48kgj9uexample"
]
},
"signed_document": "cqadz8ejnsqkw3ie3kjexample"
},
"signing_order": {
"enabled": true,
"grouped": true
},
"communication": {
"send_emails": true,
"default_locale": "sv-SE"
},
"metadata": {
"lookup_key": "your_internal_customer_id",
"success_callback_url": "https://yourdomain.com/sign-complete"
},
"updated_at": "2024-01-01T00:00:00.000Z",
"created_at": "2024-01-01T00:00:00.000Z"
}
],
"pagination": {
"limit": 100,
"total_pages": 10,
"page": 1,
"total_results": 1000
}
}
GET /agreements Error response
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [error
]
error objectrequired
Possible values: >= 400
and <= 599
{
"status": "error",
"error": {
"code": 0,
"message": "string",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}