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 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "create_employee",
  "path": {
    "id": "123"
  },
  "query": {
    "debug": false
  },
  "headers": {
    "Content-Type": "application/json"
  },
  "body": {
    "data": "example"
  }
}
'
{
  "next": "<string>",
  "data": {}
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
action
string
required

The action to execute

Example:

"create_employee"

path
object

Path parameters for the action

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

Query parameters for the action

headers
object

Headers for the action

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

Request body for the action

Example:
{ "data": "example" }

Response

Action response

next
string | null

Cursor for fetching the next page of results

data
object

The response data from the action RPC call