Reporting
Reports
The envelope, recipient and usage reports of a workspace over a window, as JSON or CSV.
Get report
GET/api/v1/reports/{kind}
A workspace report over the envelopes created in a window
DocuSign's envelope, recipient and usage reports. Envelopes created in [from, to) (any time by default), of sender when given, newest first, at most limit; truncated (or the x-truncated header on CSV) says the limit was reached. Envelopes in the Deleted view are left out. format=csv answers text/csv (RFC 4180, CRLF); a cell a spreadsheet would read as a formula starts with '.
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionreports.read · OAuth scope admin:account
Path parameters
envelopes(one row per envelope),recipients(one row per recipient) orusage(one row per sender); another is404
Query parameters
Returns
200 with application/json.
curl
curl https://sign.example.com/api/v1/reports/0193845e-9183-7131-89e8-9c4d656bdb80?limit=20 \
-H "Authorization: Bearer $OPENSEAL_API_KEY"TypeScript
import { OpenSeal } from "@openseal/sdk";
const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const data = await os.getReport({
kind: "0193845e-9183-7131-89e8-9c4d656bdb80",
limit: 20,
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.get_report(
kind="0193845e-9183-7131-89e8-9c4d656bdb80",
limit=20,
){
"items": [
{}
],
"truncated": false
}Errors this can answer
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks reports.read |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.