Skip to main content
POST
/
api
/
run
/
svc
/
swarm_api_key
/
private
/
add_activity
Calls a mutation at the path svc/swarm_api_key/private.js:add_activity
curl --request POST \
  --url https://ardent-sandpiper-70.convex.cloud/api/run/svc/swarm_api_key/private/add_activity \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "args": {
    "api_key_tid": "<string>",
    "baggage": {
      "trace_id": "<string>",
      "traffic_type": "external"
    },
    "payload": {
      "hash": "<string>",
      "name": "<string>",
      "prefix_4": "<string>",
      "suffix_4": "<string>",
      "type": "key-created",
      "user_id": "<string>"
    },
    "ts": 123
  }
}
'
{
  "status": "success",
  "errorMessage": "<string>",
  "errorData": {},
  "value": "<unknown>"
}

Authorizations

Authorization
string
header
required

Token of the format "Bearer {token}" for normal authentication and "Convex {token}" for admin tokens.

Body

application/json
args
object
required

Response

Convex executed your request and returned a result

status
enum<string>
required
Available options:
success,
error
errorMessage
string
errorData
object
value
any