Getting Started
The Idura Signatures API is built on GraphQL. This section covers the basics of the language and how to query the API.
GraphQL is a query language for APIs. It lets you send a query describing the data you want, and the server returns exactly that data.
Compared with a REST API, this gives you:
Here is a GraphQL query that retrieves a signature order and its signatories:
{
signatureOrder(id: "abcd") {
status
signatories {
status
href
}
}
}
And the response:
{
"signatureOrder": {
"status": "OPEN",
"signatories": [
{
"status": "SIGNED",
"href": "https://example.com/..."
},
{
"status": "REJECTED",
"href": "https://example.com/..."
},
{
"status": "OPEN",
"href": "https://example.com/..."
}
]
}
}
Send each query as a POST request to https://signatures.idura.app/v1/graphql.
The JSON body takes two parameters: query and, optionally, variables.
You need API credentials to execute queries. Create your application to get them.
curl -X POST -H "Content-Type: application/json" \
-u clientId:clientSecret \
--data '{"query": "query ($id: ID!) { signatureOrder(id: $id) { signatories { status } } }", "variables": {"id": "abcd"}}' \
https://signatures.idura.app/v1/graphql