Skip to navigation

How to get a list of enabled jurisdictions

View as Markdown

This topic demonstrates how to use the Notary API to get a list of the notary’s jurisdictions and their status.

Run this code example from our Quickstart or launcher projects: Bash, PowerShell.

Required data

Running the code in this how-to requires this data:

Data elementDescription
{API_ACCOUNT_ID}A GUID value that identifies your account. This value is automatically generated by Docusign for any account you create. Copy the value from the API Account ID field on the Apps and Keys page.
{BASE_PATH}A string value that forms the root of the URL required to make API calls. The base path value in the example code is set to target the developer environment at
https://<domain>/restapi
Where <domain> is notary-d.docusign.net for the developer environment and na-notary.docusign.net for production.

Step 1. Obtain your OAuth token

To make the API call shown in this how-to, you need a valid OAuth access token. Docusign supports access tokens for three different recommended OAuth grant types: Public Authorization Code Grant, Confidential Authorization Code Grant, and JSON Web Token (JWT) Grant. Choose the OAuth grant type appropriate for your scenario.

Docusign Notary OAuth access tokens are the same ones used for our eSignature REST API, although you must request four scopes to call the Docusign Notary API endpoints: notary_read, notary_write, organization_read, and signature.

See Authentication for guidance on your options to get an OAuth token.

Three icons that represent the three methods a user can use to obtain an OAuth token: JSON Web Token (JWT), Public Authorization Code Grant (ACG), and Confidential Authorization Code grant

Step 2. List jurisdictions

Make a request to the Jurisdiction:getJurisdictions endpoint to retrieve the status of all the jurisdictions for your account. Here’s how you make the call, but make sure to substitute your API account ID for {ACCOUNT_ID}.

View the source code for this how-to on GitHub: Bash, PowerShell.

declare -a Headers=('--header' "Authorization: Bearer ${ACCESS_TOKEN}" \
'--header' "Accept: application/json" \
'--header' "Content-Type: application/json")
Status=$(curl -w '%{http_code}' -i --request GET ${base_path}/v1.0/accounts/${API_ACCOUNT_ID}/jurisdictions \
"${Headers[@]}" \
--output ${response})

Expected response

If you run this code example from our Quickstart or launcher projects, you should see a JSON response similar to the code shown.

Sample response
{
"jurisdictions": [
{
"jurisdictionId": "AK",
"name": "Alaska",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "AZ",
"name": "Arizona",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "CO",
"name": "Colorado",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "FL",
"name": "Florida",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "IA",
"name": "Iowa",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "ID",
"name": "Idaho",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "KY",
"name": "Kentucky",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "MD",
"name": "Maryland",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": false,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "MI",
"name": "Michigan",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "MN",
"name": "Minnesota",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "MO",
"name": "Missouri",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "MT",
"name": "Montana",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": true,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "ND",
"name": "North Dakota",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "NJ",
"name": "New Jersey",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "OH",
"name": "Ohio",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "OK",
"name": "Oklahoma",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "OR",
"name": "Oregon",
"disabled": false,
"allowUserUploadedSeals": true,
"allowSystemCreatedSeals": false,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "PA",
"name": "Pennsylvania",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "TN",
"name": "Tennessee",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "TX",
"name": "Texas",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "VA",
"name": "Virginia",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "WA",
"name": "Washington",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "WI",
"name": "Wisconsin",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "WV",
"name": "West Virginia",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
},
{
"jurisdictionId": "WY",
"name": "Wyoming",
"disabled": false,
"allowUserUploadedSeals": false,
"allowSystemCreatedSeals": true,
"requiresCommissionId": true,
"requiresCity": false,
"supportsRon": true,
"supportsIPen": false
}
]
}

Next steps