Authentication
0Auth 2.0 standardized access tokens allow authenticated requests to be made to the Pipevest API. This document will guide you on how to create, and delete authentication tokens.
Creating an Auth Token
To create an Auth Token:
Make a POST
request to
/auth
The resulting access token has a
TTL of 60 mins
.
Revoke Auth Token
To revoke an auth token:
Make a DELETE
request to
/auth
Entity Reference
Property | Definition |
---|---|
accessTokenId | Unique access token identifier |
accessToken | Client shortlived access token. TTL of 60 mins |
expiresIn | A token’s current TTL |
maxTTL | A token’s max time to TTL |
type | A token’s authorization type |
scope | The authorization scopes associated with token |
trustedIps | The list of ip addresses whitelisted for this client |
createdAt | Created at unix timestamp |
updatedAt | Updated at unix timestamp |
Access token
type
will always be Bearer
Webhook Subscriptions
Subscription | Definition | Domain |
---|---|---|
AUTH | Only events that deal with authentication | Authentications |
AUTH.CREATED | Triggered when an auth token is created | Authentications |
AUTH.DELETED | Triggered when an auth token is deleted | Authentications |
Authentication Concepts
Check out the auth mechanisms used to keep the API secure