curl --request POST \
'https://www.app.wfa.team/api/1.1/wf/rwa_create' \
--header "Authorization: Bearer $WFA_COMPANY_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"purpose": "Work From Anywhere",
"seniority": "Low",
"roleType": "Other",
"citizenship": "Australia",
"destination": "Argentina",
"residency": "Australia",
"salesContracts": "Yes",
"pastTripsDuration": 0,
"legalRight": "No",
"benefitLocalMarket": "No",
"startDate": "2026-11-01T00:00:00.000Z",
"endDate": "2026-11-10T00:00:00.000Z",
"workingDays": 5,
"employeeId": "STAFF-001"
}'
// Run on your server. Set WFA_COMPANY_TOKEN in its environment.
const response = await fetch('https://www.app.wfa.team/api/1.1/wf/rwa_create', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.WFA_COMPANY_TOKEN}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"purpose": "Work From Anywhere",
"seniority": "Low",
"roleType": "Other",
"citizenship": "Australia",
"destination": "Argentina",
"residency": "Australia",
"salesContracts": "Yes",
"pastTripsDuration": 0,
"legalRight": "No",
"benefitLocalMarket": "No",
"startDate": "2026-11-01T00:00:00.000Z",
"endDate": "2026-11-10T00:00:00.000Z",
"workingDays": 5,
"employeeId": "STAFF-001"
})
});
const result = await response.json();
if (!response.ok || result.status !== 'success' || result.success === false) {
throw new Error(result.message || JSON.stringify(result.errors || result));
}
console.log(result);
# Run on your server. Set WFA_COMPANY_TOKEN in its environment.
import os
import requests
response = requests.post(
'https://www.app.wfa.team/api/1.1/wf/rwa_create',
headers={
'Authorization': f"Bearer {os.environ['WFA_COMPANY_TOKEN']}",
'Content-Type': 'application/json',
},
json={
"purpose": "Work From Anywhere",
"seniority": "Low",
"roleType": "Other",
"citizenship": "Australia",
"destination": "Argentina",
"residency": "Australia",
"salesContracts": "Yes",
"pastTripsDuration": 0,
"legalRight": "No",
"benefitLocalMarket": "No",
"startDate": "2026-11-01T00:00:00.000Z",
"endDate": "2026-11-10T00:00:00.000Z",
"workingDays": 5,
"employeeId": "STAFF-001"
},
timeout=45,
)
result = response.json()
if not response.ok or result.get('status') != 'success' or result.get('success') is False:
raise RuntimeError(result.get('message') or result.get('errors') or result)
print(result)
{
"status": "success",
"response": {
"redirect_url": "https://www.app.wfa.team/redirect/YOUR_TEST_ASSESSMENT_ID",
"assessment_id": "YOUR_ASSESSMENT_ID"
}
}
{
"status": "error",
"success": false,
"message": "Invalid Auth"
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "employeeId",
"message": "Employee ID is missing"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "destination",
"message": "Incorrect Country please review documentation"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "pastTripsDuration",
"message": "Past Trip Duration is missing"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "numberHires",
"message": "Number Hires is missing"
}
]
}
API reference
Create an assessment
Submit trip or hiring details and receive an assessment identifier.
POST
/
api
/
1.1
/
wf
/
rwa_create
curl --request POST \
'https://www.app.wfa.team/api/1.1/wf/rwa_create' \
--header "Authorization: Bearer $WFA_COMPANY_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"purpose": "Work From Anywhere",
"seniority": "Low",
"roleType": "Other",
"citizenship": "Australia",
"destination": "Argentina",
"residency": "Australia",
"salesContracts": "Yes",
"pastTripsDuration": 0,
"legalRight": "No",
"benefitLocalMarket": "No",
"startDate": "2026-11-01T00:00:00.000Z",
"endDate": "2026-11-10T00:00:00.000Z",
"workingDays": 5,
"employeeId": "STAFF-001"
}'
// Run on your server. Set WFA_COMPANY_TOKEN in its environment.
const response = await fetch('https://www.app.wfa.team/api/1.1/wf/rwa_create', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.WFA_COMPANY_TOKEN}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"purpose": "Work From Anywhere",
"seniority": "Low",
"roleType": "Other",
"citizenship": "Australia",
"destination": "Argentina",
"residency": "Australia",
"salesContracts": "Yes",
"pastTripsDuration": 0,
"legalRight": "No",
"benefitLocalMarket": "No",
"startDate": "2026-11-01T00:00:00.000Z",
"endDate": "2026-11-10T00:00:00.000Z",
"workingDays": 5,
"employeeId": "STAFF-001"
})
});
const result = await response.json();
if (!response.ok || result.status !== 'success' || result.success === false) {
throw new Error(result.message || JSON.stringify(result.errors || result));
}
console.log(result);
# Run on your server. Set WFA_COMPANY_TOKEN in its environment.
import os
import requests
response = requests.post(
'https://www.app.wfa.team/api/1.1/wf/rwa_create',
headers={
'Authorization': f"Bearer {os.environ['WFA_COMPANY_TOKEN']}",
'Content-Type': 'application/json',
},
json={
"purpose": "Work From Anywhere",
"seniority": "Low",
"roleType": "Other",
"citizenship": "Australia",
"destination": "Argentina",
"residency": "Australia",
"salesContracts": "Yes",
"pastTripsDuration": 0,
"legalRight": "No",
"benefitLocalMarket": "No",
"startDate": "2026-11-01T00:00:00.000Z",
"endDate": "2026-11-10T00:00:00.000Z",
"workingDays": 5,
"employeeId": "STAFF-001"
},
timeout=45,
)
result = response.json()
if not response.ok or result.get('status') != 'success' or result.get('success') is False:
raise RuntimeError(result.get('message') or result.get('errors') or result)
print(result)
{
"status": "success",
"response": {
"redirect_url": "https://www.app.wfa.team/redirect/YOUR_TEST_ASSESSMENT_ID",
"assessment_id": "YOUR_ASSESSMENT_ID"
}
}
{
"status": "error",
"success": false,
"message": "Invalid Auth"
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "employeeId",
"message": "Employee ID is missing"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "destination",
"message": "Incorrect Country please review documentation"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "pastTripsDuration",
"message": "Past Trip Duration is missing"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "numberHires",
"message": "Number Hires is missing"
}
]
}
POST /rwa_create
Legal entity is derived from your company settings. Use the exact input options and country names.
Requirements by assessment type
| Input | Work From Anywhere | Hire From Anywhere |
|---|---|---|
pastTripsDuration | Required; send 0 for no prior days. | Optional. |
workingDays | Required. | Optional. |
urgency and numberHires | Omit unless applicable. | Both required. |
Authorization
Body parameters
Required. See role types.
Required. Exact name from the citizenship list.
Required. Exact name marked as supported for destination/residency in the country reference.
Required. Employee employment/residency country; see the country reference.
Required for Work From Anywhere; optional for Hire From Anywhere. Use a nonnegative whole number, including
0 when there are no prior trips. See prior trip duration.Required for Hire From Anywhere. See urgency values.
Required for Hire From Anywhere. Nonnegative whole number of anticipated hires over the next two years.
Required for Work From Anywhere; optional for Hire From Anywhere. Nonnegative whole number, at most the number of calendar days between the dates, including both dates.
Optional at creation. Your external compliance Staff ID. It is checked for an activated company account when supplied to the update endpoint.
Error responses
Invalid company authorization returnsmessage: "Invalid Auth". Field validation returns errors[] with a field and message; the workflow checks fields in order and stops at the first failing check.
| Field | When returned | Message or correction |
|---|---|---|
employeeId | Missing employee Staff ID | Employee ID is missing |
purpose | Unsupported purpose | Use a value from input options. |
seniority | Unsupported seniority | Use Low, Mid or Senior. |
roleType | Unsupported role type | Use a value from input options. |
citizenship | Unrecognised country | Incorrect Country please review documentation |
destination | Unrecognised destination | Incorrect Country please review documentation |
residency | Unrecognised residency | Incorrect Country please review documentation |
salesContracts | Unsupported selection | Use Yes or No. |
pastTripsDuration | Missing for Work From Anywhere | Past Trip Duration is missing |
legalRight | Unsupported selection | Use Yes, No or Unsure. |
benefitLocalMarket | Unsupported selection | Use Yes or No. |
numberHires | Missing for Hire From Anywhere | Number Hires is missing |
urgency | Unsupported or missing for Hire From Anywhere | Use a value from input options. |
dates | Missing, invalid or reversed dates | startDate and endDate must be valid ISO 8601 dates, with endDate on or after startDate |
workingDays, pastTripsDuration, numberHires | Missing where required, negative, fractional or not numeric | The named field must be a nonnegative whole number. |
workingDays | Exceeds the trip length | workingDays cannot exceed the number of calendar days in the trip |
Response
Check the JSON response as well as HTTP status. HTTP 200 can contain an API error. Assessment creation has no idempotency key or deduplication guarantee. If a request times out, it may have created an assessment; do not automatically repeat it. If no ID was received, ask WFA to trace the request using the request time and external Staff ID.
curl --request POST \
'https://www.app.wfa.team/api/1.1/wf/rwa_create' \
--header "Authorization: Bearer $WFA_COMPANY_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"purpose": "Work From Anywhere",
"seniority": "Low",
"roleType": "Other",
"citizenship": "Australia",
"destination": "Argentina",
"residency": "Australia",
"salesContracts": "Yes",
"pastTripsDuration": 0,
"legalRight": "No",
"benefitLocalMarket": "No",
"startDate": "2026-11-01T00:00:00.000Z",
"endDate": "2026-11-10T00:00:00.000Z",
"workingDays": 5,
"employeeId": "STAFF-001"
}'
// Run on your server. Set WFA_COMPANY_TOKEN in its environment.
const response = await fetch('https://www.app.wfa.team/api/1.1/wf/rwa_create', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.WFA_COMPANY_TOKEN}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"purpose": "Work From Anywhere",
"seniority": "Low",
"roleType": "Other",
"citizenship": "Australia",
"destination": "Argentina",
"residency": "Australia",
"salesContracts": "Yes",
"pastTripsDuration": 0,
"legalRight": "No",
"benefitLocalMarket": "No",
"startDate": "2026-11-01T00:00:00.000Z",
"endDate": "2026-11-10T00:00:00.000Z",
"workingDays": 5,
"employeeId": "STAFF-001"
})
});
const result = await response.json();
if (!response.ok || result.status !== 'success' || result.success === false) {
throw new Error(result.message || JSON.stringify(result.errors || result));
}
console.log(result);
# Run on your server. Set WFA_COMPANY_TOKEN in its environment.
import os
import requests
response = requests.post(
'https://www.app.wfa.team/api/1.1/wf/rwa_create',
headers={
'Authorization': f"Bearer {os.environ['WFA_COMPANY_TOKEN']}",
'Content-Type': 'application/json',
},
json={
"purpose": "Work From Anywhere",
"seniority": "Low",
"roleType": "Other",
"citizenship": "Australia",
"destination": "Argentina",
"residency": "Australia",
"salesContracts": "Yes",
"pastTripsDuration": 0,
"legalRight": "No",
"benefitLocalMarket": "No",
"startDate": "2026-11-01T00:00:00.000Z",
"endDate": "2026-11-10T00:00:00.000Z",
"workingDays": 5,
"employeeId": "STAFF-001"
},
timeout=45,
)
result = response.json()
if not response.ok or result.get('status') != 'success' or result.get('success') is False:
raise RuntimeError(result.get('message') or result.get('errors') or result)
print(result)
{
"status": "success",
"response": {
"redirect_url": "https://www.app.wfa.team/redirect/YOUR_TEST_ASSESSMENT_ID",
"assessment_id": "YOUR_ASSESSMENT_ID"
}
}
{
"status": "error",
"success": false,
"message": "Invalid Auth"
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "employeeId",
"message": "Employee ID is missing"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "destination",
"message": "Incorrect Country please review documentation"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "pastTripsDuration",
"message": "Past Trip Duration is missing"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "numberHires",
"message": "Number Hires is missing"
}
]
}
