GET /v1/signature/stats
const url = 'https://api.asap.cool/v1/signature/stats?from=example&to=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.asap.cool/v1/signature/stats?from=example&to=example' \ --header 'Authorization: Bearer <token>'Authorizations
Section intitulée « Authorizations »Parameters
Section intitulée « Parameters »Query Parameters
Section intitulée « Query Parameters »Inclusive lower bound (YYYY-MM-DD).
Inclusive upper bound (YYYY-MM-DD).
Responses
Section intitulée « Responses »Envelope flow over the window.
Response of GET /v1/signature/stats.
object
Envelopes waiting on a signer right now (window-invariant).
Status mix of the envelopes created in the window; absent statuses are omitted.
Envelopes created in the window in one status.
object
How many.
Status token (draft, sent, in_progress, completed, declined,
expired, cancelled).
Completed over sent (non-draft, non-cancelled) envelopes created in the
window, in basis points; null when none was sent.
Median hours from creation to completion over the window’s completions.
Month series over the window, gap-filled, oldest first.
One month of envelope flow.
object
Envelopes completed that month.
Month, YYYY-MM.
Envelopes sent that month.
Example generated
{ "awaiting_count": 1, "by_status": [ { "count": 1, "status": "example" } ], "completion_rate_bp": 1, "median_hours_to_complete": 1, "series": [ { "completed_count": 1, "period": "example", "sent_count": 1 } ]}No active org.
Generic error body returned by API handlers when they fail. code is a
stable machine-readable token; message is human-friendly and meant for
surfacing to end users.
object
Stable machine token (e.g. invalid_credentials).
Offending request field for validation errors, when known.
Human-readable message.
Example generated
{ "code": "example", "field": "example", "message": "example"}Missing signature:read scope.
Generic error body returned by API handlers when they fail. code is a
stable machine-readable token; message is human-friendly and meant for
surfacing to end users.
object
Stable machine token (e.g. invalid_credentials).
Offending request field for validation errors, when known.
Human-readable message.
Example generated
{ "code": "example", "field": "example", "message": "example"}Invalid window (bad date, from > to, span > 366d).
Generic error body returned by API handlers when they fail. code is a
stable machine-readable token; message is human-friendly and meant for
surfacing to end users.
object
Stable machine token (e.g. invalid_credentials).
Offending request field for validation errors, when known.
Human-readable message.
Example generated
{ "code": "example", "field": "example", "message": "example"}