GuidesAPI ReferenceChangelogAPI StatusAPI PolicyGusto Security
API Reference

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 2026-02-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

404

Not Found

The requested resource does not exist. Make sure the provided UUID is valid.

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