> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revoengine.com/llms.txt
> Use this file to discover all available pages before exploring further.

# vault.getAccessToken()

> Public low-code contract, signatures and examples for vault.getAccessToken.

## `vault.getAccessToken()`

Returns a usable integration access token and its matching expiry; refreshes when required.
Saved component/Tool reads retain their exact grants. Direct SDK reads require owner/admin access.
Never returns refresh tokens or client secrets. Do not log the result.

### Signature

```ts theme={null}
static getAccessToken(name: string, options?: SecretScopeOptions): Promise<VaultAccessToken>;
```

### Example

```ts theme={null}
const token = await vault.getAccessToken('CRM', { scope: 'user' });
await api.httpCall({ url: input.url, headers: { Authorization: `Bearer ${token.accessToken}` } });
```

See [all vault methods](https://docs.revoengine.com/low-code/reference/vault.md) or [runtime basics](https://docs.revoengine.com/low-code/overview.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.