Partner API
Create path
POST /api/v2/paths - Creates a new path draft.
POST
/api/v2/pathsCreates a new path draft.
Required scope: paths (or *).
JSON body
| Name | Required | Description |
|---|---|---|
slug | Yes | URL slug |
label | Yes | Display label |
path_json | No | Initial path JSON document |
curl -s -X POST -H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"slug": "medicare-quiz",
"label": "Medicare Quiz",
"path_json": {
"pages": [
{
"id": "welcome",
"title": "Welcome"
}
],
"logic": {},
"settings": {
"theme": "default"
}
}
}' \
"https://benefitpath.com/api/v2/paths"
{
"success": true,
"path": {
"path_uuid": "c0a80101-0000-4000-8000-000000000005",
"slug": "medicare-quiz",
"label": "Medicare Quiz"
}
}
See Errors for the standard error envelope and rate limits.