Authentication
Authenticate your account using one of the methods outlined below. We recommend using API access tokens to authenticate to Vault API. Users can provide the value of their access token in place of a session ID when sending requests.
When using Basic or Bearer token authorization, the response returns a session ID that you can use in subsequent API calls inside the Authorization HTTP request header. Session IDs time out after a period of inactivity, which varies by Vault. Learn more about session duration and management.
API Access Token Authorization
Section link for API Access Token AuthorizationAPI access token values always begin with veeva-vault- followed by a randomized string. The Authorization HTTP header accepts the access token value preceded by the Bearer keyword.
| Name | Description |
|---|---|
Authorization | Bearer {access_token} |
Basic Authorization
Section link for Basic Authorization| Name | Description |
|---|---|
Authorization | {sessionId} |
Alternatively, you can use Salesforce or OAuth2/OIDC Delegated Requests.
Bearer Token Authorization
Section link for Bearer Token AuthorizationVault API also accepts Vault session IDs as Bearer tokens. Include the Bearer keyword to send Vault session IDs as Bearer tokens.
| Name | Description |
|---|---|
Authorization | Bearer {sessionId} |