OAuth
The authorization server for apps that act on someone’s behalf.
post /oauth/token
Exchange an authorization code or refresh token for tokens.
No credential needed Returns 200
Example
curl -X POST 'https://api.bkmark.it/oauth/token' Response fields (5)
| Name | Type | Description |
|---|---|---|
access_tokenrequired | string | |
token_typerequired | string | One of Bearer. |
expires_inrequired | integer | -9007199254740991–9007199254740991. |
scoperequired | string | |
refresh_token | string |
post /oauth/revoke
Revoke an access or refresh token (RFC 7009; always 200).
No credential needed Returns 200
Example
curl -X POST 'https://api.bkmark.it/oauth/revoke' get /oauth/token-info
The calling OAuth2 token or API key: its user, scopes, library and expiry.
No credential needed Returns 200
Example
curl 'https://api.bkmark.it/oauth/token-info' Response fields (7)
| Name | Type | Description |
|---|---|---|
activerequired | boolean | One of true. |
viarequired | enum | One of oauth, api_key. |
clientIdrequired | string or null | |
scopesrequired | string[] | |
libraryIdrequired | uuid or null | |
expiresAtrequired | string or null | |
userrequired | object | |
idrequired | uuid | |
emailrequired | string | |
namerequired | string |