Docs
Getting started
User
Document
Template
Document Group
Signing Link
Webhooks 2.0
Folder
Smart Fields
Embedded Signing
Team
Embedded signing (old version)
post

/oauth2/token

Returns an access token for a user

See also: Authentication

Request Parameters

2 Headers

Request Body

Form data (multipart/form-data)
username
string

user’s email;
required if 'grant_type: password'

required
password
string

user’s password;
required if 'grant_type: password'

required
grant_type
string

can be 'password', 'refresh_token', 'authorization_code'

required
default: password
scope
string
default: *
refresh_token
string

required if 'grant_type: refresh_token'

default: {{refresh_token}}
code
string

required if 'grant_type: authorization_code'

default: {{authorization_code}}
expiration_time
string

the amount of time till the token expires in seconds.

Responses

1 Example
Schema
object
expires_in
integer
token_type
string
access_token
string
refresh_token
string
scope
string
last_login
integer

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
No $$.env variables are being used in this request.