Generating Personal Access Credentials via user email and password
Documentation: https://apidocs.scrive.com/#personal-access-credentials
cURL example:
curl -X POST 'https://{server_address}/api/v2/getpersonaltoken' \
--data-urlencode 'email={user_email}' \
--data-urlencode 'password={user_password}'
Replace {server_address} with the host (Scrive environment) that you want to authenticate your user in. (https://scrive.com or https://api-testbed.scrive.com)
Replace {user_email} and {user_password} with the appropriate values. Note that the data needs to be URL encoded.
Fetching credentials from other users
Documentation: https://apidocs.scrive.com/#get-temporary-login_token-for-a-user
If you need to authenticate a user in your user group or child user group that you do not have the password for, you can use a login token instead of a password. The login token can be generated via the following API call:
cURL example:
curl -X POST 'https://{server_address}/api/v2/gettokenforpersonalcredentials/{user_id}' \
-H Authorization: oauth_signature_method="PLAINTEXT", oauth_consumer_key="123", oauth_token="456", oauth_signature="abc&cde"
Replace {server_address} with the host that you want to authenticate your user in. (https://scrive.com or https://api-testbed.scrive.com).
Please note that this requires you to be authenticated as an administrator in either the same user group or in a parent user group.
Replace {user_id} with the ID of the user that you wish to authenticate.
If successful, you will receive the login token in the response. This login token can be used instead of the password to generate credentials via the Personal Access Credentials call.
For information about how to format the authorization header, please see [Formatting the Authorization header]