docusign
Installation
SKILL.md
Troubleshooting
If requests fail, run zero doctor check-connector --env-name DOCUSIGN_TOKEN or zero doctor check-connector --url https://account.docusign.com/oauth/userinfo --method GET
User Info
Get User Info
Call this first to obtain the base_uri and account_id needed for all subsequent API calls.
curl -s "https://account.docusign.com/oauth/userinfo" --header "Authorization: Bearer $DOCUSIGN_TOKEN" | jq '{sub: .sub, name: .name, email: .email, accounts: [.accounts[] | {account_id, account_name, base_uri, is_default}]}'
Use the base_uri and account_id from the default account (where is_default is true) for all subsequent API calls. The API base path is {base_uri}/restapi/v2.1/accounts/{account_id}.