# Vend Integration Token

> Vend a short-lived access token for this workload's granted credential.

Canonical URL: https://docs.botyard.io/docs/api/integrations-vending/vend_integration_token_v1_integrations_token_post

`POST /v1/integrations/token`

Vend a short-lived access token for this workload's granted credential.

## Request body

`application/json`: IntegrationTokenRequest \| null

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `provider` | string \| null | no | Which granted provider to vend for. Required only when this principal holds grants spanning more than one provider. |
| `force_refresh` | boolean | no | Refresh the access token upstream even if it is not near expiry. Set only after the provider rejected the current token. Floored per credential: within 60 seconds of the credential's last successful refresh the stored token is returned without another upstream refresh, unless it is past its actual expiry, in which case it is refreshed. A token with unknown expiry is served as stored inside the floor. |

## Responses

| Status | Description | Body |
| --- | --- | --- |
| `200` | Successful Response | IntegrationTokenResponse |
| `default` | RFC 9457 Problem Details error response | ProblemDetails |

Full schemas: operation `vend_integration_token_v1_integrations_token_post` in the OpenAPI spec at https://api.botyard.io/openapi.json.
