Skip to main content
POST
/
actions
/
rpc
Make an RPC call to an action
curl --request POST \
  --url https://api.stackone.com/actions/rpc \
  --header 'Content-Type: application/json' \
  --data '{
  "action": "create_employee",
  "path": {
    "id": "123"
  },
  "query": {
    "param1": "value1",
    "param2": "value2"
  },
  "headers": {
    "Content-Type": "application/json"
  },
  "body": {
    "data": "example"
  }
}'
{
  "next": "<string>",
  "data": {}
}

Body

application/json
action
string
required

The action to execute

Example:

"create_employee"

path
object | null

Path parameters for the action

Example:
{ "id": "123" }
query
object | null

Query parameters for the action

Example:
{ "param1": "value1", "param2": "value2" }
headers
object | null

Headers for the action

Example:
{ "Content-Type": "application/json" }
body
object | null

Request body for the action

Example:
{ "data": "example" }

Response

Action response

next
string | null

Cursor for fetching the next page of results

data

The response data from the action RPC call

I