Requesting an Access Token
To generate an access token, you will need to provide your clientId and clientSecret values in the body of the request to the /token endpoint. Given you are permitted to access the API, a clientId and clientSecret will have been provided to you in a 1Password Vault.
An example request body would look like:
{
"clientId": "my-client-id",
"clientSecret": "my-client-secret"
}
A successful response will look like:
{
"accessToken": "eyLongtokenetc",
"expiresAt": "expiration in epochtime"
}
To use the token, you should attach it to your authorization header using the Bearer syntax:
--header 'Authorization: Bearer {{accessToken}}'Updated 3 months ago