provider Approvals GET
/api/v2/approval-requests/{id} @utdk/launchdarkly
/api/v2/approval-requests/{id} Get approval request
Get an approval request by approval request ID.
### Expanding approval response
LaunchDarkly supports the `expand` query param to include additional fields in the response, with the following fields:
- `environments` includes the environments the approval request relates to
- `flag` includes the flag the approval request belongs to
- `project` includes the project the approval request belongs to
- `resource` includes details on the resource (flag or segment) the approval request relates to
For example, `expand=project,flag` includes the `project` and `flag` fields in the response.
- id path required
- The approval request ID
- string
- expand query
- A comma-separated list of fields to expand in the response. Supported fields are explained above.
- string
Try it
Authentication
Configure credentials for LaunchDarkly REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import launchdarkly from '@utdk/launchdarkly';
await launchdarkly.getapprovalrequest()