Employee Forms
Generate a W2 form [DEMO]
🚧 Demo action
This action is only available in the Demo environment
Generates a W2 document for testing purposes.
scope: employees:write
post/v1/sandbox/generate_w2
Request
- Base URLhttps://api.gusto-demo.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-Gusto-API-Version'2026-06-15'
Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.
Request body
Response
Created
Changes
No recorded changes to this operation across all 2 revisions of this API.