VA.gov's frontend repo (
vets-api as a service layer for all features. To expose new data or systems to
vets-website, engineers should create an integration in
vets-api. If you would like to expose an existing service's API, without an associated
vets-website form, save in progress functionality, or prefill, please reach out to the OCTO-DE for additional options.
Vets API is a wrapper around VA data services with utilities and tools that support interaction with those services on behalf of a Veteran. It exposes tools to retrieve information and submit data to VA systems, and does so with a unified sign-in mechanism. When services are down or are experiencing problems, Vets API integrations are designed to gracefully handle failures and provide useful notifications to consumers. Vets API is built on top of Ruby on Rails, providing a unified JSON-based REST interface and additional resilience for VA data services that may not be designed to operate directly with users 24x7.
Authentication / Authorization
Downtime Notifications / Maintenance Windows
See the Vets-API Development documentation to get started with a local instance of Vets-API and for guidance on how to submit changes and new features.
A Vets-API integration must handle user requests, validate inputs, make one or multiple requests to another (external) service, and then render a response based on the results of those external service responses. To expose a service integration, a developer must:
Provide Routing for a new endpoint on api.va.gov
Authorize requests to this endpoint appropriately through a Policy
Validate user input or form submissions
Instantiate an External Service Client connection and interact with an External Service
Serialize and render response data
Vets API provides utilities and patterns for appropriate instrumentation, error handling, and documentation for defining this integration consistently and resiliently. Refer to the guides in the sidebar for more information on how to utilize each of these features and develop an integration.