GuidesAPI ReferenceChangelogAPI StatusAPI PolicyGusto Security
API Reference
These docs are for v2024-04-01. Click to read the latest docs for v2026-02-01.

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

Body Params
string
required

The employee UUID.

integer

Must be equal to or more recent than 2015. If not specified, defaults to the previous year.

Headers
string
enum
Defaults to 2024-04-01

Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.

Allowed:
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json