Skip to main content
POST
/
v2
/
turnkey
/
activities
/
{activityId}
/
vote
Approve or reject a Turnkey activity
curl --request POST \
  --url https://sandbox.groundtech.co/v2/turnkey/activities/{activityId}/vote \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "approve",
  "customerApprovalStamp": {
    "stampHeaderName": "X-Stamp",
    "stampHeaderValue": "..."
  },
  "turnkeyRequest": {
    "type": "ACTIVITY_TYPE_APPROVE_ACTIVITY",
    "timestampMs": "1782302400000",
    "organizationId": "turnkey-suborg-id",
    "parameters": {
      "fingerprint": "activity-fingerprint"
    }
  }
}
'
{
  "action": "approve",
  "approved": true,
  "resultStatus": "ACTIVITY_STATUS_COMPLETED"
}
Approve or reject a pending Turnkey activity with a customer-generated Turnkey stamp.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

activityId
string
required

Turnkey activity ID returned by the pending activities endpoint.

Body

application/json
action
enum<string>
required
Available options:
approve,
reject
customerApprovalStamp
required
turnkeyRequest
object
required

Response

Vote submitted

action
enum<string>
required
Available options:
approve,
reject
approved
boolean
rejected
boolean
alreadyCompleted
boolean
alreadyTerminal
boolean
status
string
resultStatus
string | null