Skip to main content
POST
/
actions
/
actions
/
{id}
/
test
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.actions.test("id", {
        payload: {
            "key": "value",
        },
    });
}
main();
{
  "payload": {}
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The id of the action to test.

Body

payload
object
required

The payload for the action.

Response

Test action version successfully created.

payload
object

The resulting payload after an action was executed.