Skip to main content
All examples use https://www.app.wfa.team/api/1.1/wf. Use your company token and replace placeholder staff and assessment IDs with your own. See Authentication.

Before you begin

You need a company API token issued by WFA, a server-side integration, and the staff IDs used by your company. Keep the token out of browser code.
1

Set up authentication

Send Authorization: Bearer YOUR_COMPANY_TOKEN and Content-Type: application/json with every request. See Authentication.
2

Create an assessment

Use Create an assessment with the employee, destination and travel details. Save the returned assessment ID and redirect URL.
3

Retrieve the results

Pass the saved ID as assessmentId to Retrieve an assessment. If the body says Pending, poll that same ID; do not create again.
4

Record a decision

Use Update a decision to record the status, decision note and the appropriate approver ID. A compliance approver must be registered and activated for your company.

Need to add an approver?

Add or restore staff creates an Approver and sends invitation emails for a new email. For an existing email in the same company, it restores Remove Access to Approver, or preserves the current active role, without resending emails. The existing profile and saved Staff ID are retained. Use a controlled test address for new staff.

Check the response body

An HTTP 200 response can still contain an API error. Check status and, where returned, success before continuing. See Errors and retries.

Identifier map

Assessment request examples

Both requests use the API base URL and POST /rwa_create. All identifiers below are placeholders. Send the exact country names and input options.
Work From Anywhere
Hire From Anywhere

Read the endpoint’s success envelope

Check response.ok (or the HTTP status), then parse the body and reject status: "error" or success: false. Confirm the endpoint-specific success fields before using them: Do not treat a missing, empty or unparseable response as success. Keep an uncertain request for investigation instead of blindly repeating it.

Retry policy

See Errors and retries for error envelopes and retry guidance.