curl --request POST \
'https://www.app.wfa.team/api/1.1/wf/rwa_update' \
--header "Authorization: Bearer $WFA_COMPANY_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"assessmentId": "YOUR_TEST_ASSESSMENT_ID",
"status": "Final Approved",
"complianceTeamMemberId": "COMPLIANCE-001",
"note": "Reviewed by the compliance team",
"externalEventId": "decision-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_update', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.WFA_COMPANY_TOKEN}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"assessmentId": "YOUR_TEST_ASSESSMENT_ID",
"status": "Final Approved",
"complianceTeamMemberId": "COMPLIANCE-001",
"note": "Reviewed by the compliance team",
"externalEventId": "decision-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_update',
headers={
'Authorization': f"Bearer {os.environ['WFA_COMPANY_TOKEN']}",
'Content-Type': 'application/json',
},
json={
"assessmentId": "YOUR_TEST_ASSESSMENT_ID",
"status": "Final Approved",
"complianceTeamMemberId": "COMPLIANCE-001",
"note": "Reviewed by the compliance team",
"externalEventId": "decision-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",
"success": true,
"message": "RWA decision and note updated"
}
{
"status": "error",
"success": false,
"message": "Invalid Auth"
}
{
"status": "error",
"success": false,
"message": "RWA not found for this company"
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "managerId",
"message": "Manager ID is required for Manager Approved"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "approverId",
"message": "Manager ID or Compliance Team Member ID is required for Rejected"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "complianceTeamMemberId",
"message": "Compliance Team Member ID is required for Final Approved"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "complianceTeamMemberId",
"message": "Compliance Team Member ID must match a registered, activated staff account in this company. The team member must complete account setup using their invitation before acting on an assessment."
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "status",
"message": "Status must be Pending, Manager Approved, Final Approved, Rejected, or Canceled. Approved and Compliance Approved are accepted as legacy aliases for Final Approved."
}
]
}
{"status":"success","success":true,"message":"RWA decision already processed","deduplicated":true}
{"status":"error","success":false,"errors":[{"field":"externalEventId","message":"Decision is still processing; retrieve before retrying with the same event ID"}]}
API reference
Update a decision
Record an approval, rejection, cancellation or pending decision.
POST
/
api
/
1.1
/
wf
/
rwa_update
curl --request POST \
'https://www.app.wfa.team/api/1.1/wf/rwa_update' \
--header "Authorization: Bearer $WFA_COMPANY_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"assessmentId": "YOUR_TEST_ASSESSMENT_ID",
"status": "Final Approved",
"complianceTeamMemberId": "COMPLIANCE-001",
"note": "Reviewed by the compliance team",
"externalEventId": "decision-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_update', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.WFA_COMPANY_TOKEN}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"assessmentId": "YOUR_TEST_ASSESSMENT_ID",
"status": "Final Approved",
"complianceTeamMemberId": "COMPLIANCE-001",
"note": "Reviewed by the compliance team",
"externalEventId": "decision-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_update',
headers={
'Authorization': f"Bearer {os.environ['WFA_COMPANY_TOKEN']}",
'Content-Type': 'application/json',
},
json={
"assessmentId": "YOUR_TEST_ASSESSMENT_ID",
"status": "Final Approved",
"complianceTeamMemberId": "COMPLIANCE-001",
"note": "Reviewed by the compliance team",
"externalEventId": "decision-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",
"success": true,
"message": "RWA decision and note updated"
}
{
"status": "error",
"success": false,
"message": "Invalid Auth"
}
{
"status": "error",
"success": false,
"message": "RWA not found for this company"
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "managerId",
"message": "Manager ID is required for Manager Approved"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "approverId",
"message": "Manager ID or Compliance Team Member ID is required for Rejected"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "complianceTeamMemberId",
"message": "Compliance Team Member ID is required for Final Approved"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "complianceTeamMemberId",
"message": "Compliance Team Member ID must match a registered, activated staff account in this company. The team member must complete account setup using their invitation before acting on an assessment."
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "status",
"message": "Status must be Pending, Manager Approved, Final Approved, Rejected, or Canceled. Approved and Compliance Approved are accepted as legacy aliases for Final Approved."
}
]
}
{"status":"success","success":true,"message":"RWA decision already processed","deduplicated":true}
{"status":"error","success":false,"errors":[{"field":"externalEventId","message":"Decision is still processing; retrieve before retrying with the same event ID"}]}
POST /rwa_update
Decision rules
| Status | Required actor |
|---|---|
| Pending | No decision-maker identifier required. |
| Manager Approved | managerId is required. |
| Final Approved | complianceTeamMemberId is required. The staff member must belong to the company and have completed account activation. |
| Rejected | managerId or complianceTeamMemberId is required. |
| Canceled | cancelledByStaffId is required. |
Approved and Compliance Approved map to the existing Final Approved option. A completed request can be replayed with the same event ID and identical decision data; a changed payload using that ID is rejected.
Authorization
Body parameters
Registered, activated compliance Staff ID in the token’s company. Required for the applicable decision status.
Required event identifier, unique for this assessment and decision. Reuse the same ID and identical payload when retrying an uncertain request; do not generate a new ID for the retry.
Company Staff ID of the person cancelling the assessment. Required for the applicable decision status.
Error responses
| Message or field | When returned |
|---|---|
Invalid Auth | Company authorization did not match. |
RWA not found for this company | The assessment was not found for the authenticated company. |
managerId | Manager ID is required for Manager Approved |
approverId | Manager ID or Compliance Team Member ID is required for Rejected |
complianceTeamMemberId | Compliance Team Member ID is required for Final Approved |
complianceTeamMemberId | Compliance Team Member ID must match a registered, activated staff account in this company. The team member must complete account setup using their invitation before acting on an assessment. |
status | Status must be Pending, Manager Approved, Final Approved, Rejected, or Canceled. Approved and Compliance Approved are accepted as legacy aliases for Final Approved. |
cancelledByStaffId | Cancelling Staff ID is required for Canceled |
externalEventId | externalEventId is required |
externalEventId | externalEventId has already been used for a different decision |
externalEventId | Decision is still processing; retrieve before retrying with the same event ID |
complianceTeamMemberId is checked for an activated staff account in the company, including when supplied with another status. The staff member must complete setup from their invitation before acting on an assessment.
Response
The documented success message isRWA decision and note updated.
Check the JSON response as well as HTTP status. HTTP 200 can contain an API error. If a request times out, check the assessment before retrying. Final Approved, both legacy approval aliases, completed-request replay, conflicting-payload handling and rejection of archived approvers were verified against the live API on 18 October 2026. Four simultaneous identical requests were tested live: one decision/history entry was saved. Other copies receive a duplicate acknowledgement or the processing error below. Serialize different decisions for an assessment so their ordering is predictable.
curl --request POST \
'https://www.app.wfa.team/api/1.1/wf/rwa_update' \
--header "Authorization: Bearer $WFA_COMPANY_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"assessmentId": "YOUR_TEST_ASSESSMENT_ID",
"status": "Final Approved",
"complianceTeamMemberId": "COMPLIANCE-001",
"note": "Reviewed by the compliance team",
"externalEventId": "decision-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_update', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.WFA_COMPANY_TOKEN}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"assessmentId": "YOUR_TEST_ASSESSMENT_ID",
"status": "Final Approved",
"complianceTeamMemberId": "COMPLIANCE-001",
"note": "Reviewed by the compliance team",
"externalEventId": "decision-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_update',
headers={
'Authorization': f"Bearer {os.environ['WFA_COMPANY_TOKEN']}",
'Content-Type': 'application/json',
},
json={
"assessmentId": "YOUR_TEST_ASSESSMENT_ID",
"status": "Final Approved",
"complianceTeamMemberId": "COMPLIANCE-001",
"note": "Reviewed by the compliance team",
"externalEventId": "decision-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",
"success": true,
"message": "RWA decision and note updated"
}
{
"status": "error",
"success": false,
"message": "Invalid Auth"
}
{
"status": "error",
"success": false,
"message": "RWA not found for this company"
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "managerId",
"message": "Manager ID is required for Manager Approved"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "approverId",
"message": "Manager ID or Compliance Team Member ID is required for Rejected"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "complianceTeamMemberId",
"message": "Compliance Team Member ID is required for Final Approved"
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "complianceTeamMemberId",
"message": "Compliance Team Member ID must match a registered, activated staff account in this company. The team member must complete account setup using their invitation before acting on an assessment."
}
]
}
{
"status": "error",
"success": false,
"errors": [
{
"field": "status",
"message": "Status must be Pending, Manager Approved, Final Approved, Rejected, or Canceled. Approved and Compliance Approved are accepted as legacy aliases for Final Approved."
}
]
}
{"status":"success","success":true,"message":"RWA decision already processed","deduplicated":true}
{"status":"error","success":false,"errors":[{"field":"externalEventId","message":"Decision is still processing; retrieve before retrying with the same event ID"}]}
