Workflows
Get a campaign's workflow
RankShark EnhanceScopecampaigns:read
GET
The editable flow spec, whatever form the campaign is stored in (a classic campaign shows as its linear flow).
header
AuthorizationBearer <token>An Enhance API key (rsen_…) or an OAuth 2.1 access token, as "Authorization: Bearer …".
id*stringCampaign id
OK
application/json- response
id*stringhasFlow*booleanThe campaign has a stored workflow
storedAs*stringflow or classic
Value in
"flow""classic"taskCount?integerspec?A workflow (GET /api/v1/schema/flow documents nodes, edges and subflows; mode nodes reference tasks[] by index)
flowGraph?The stored graph (null for a classic campaign)
warning?stringcurl -X GET 'https://panel.rankshark.io/api/v1/campaigns/string/flow'Example Response
{ "id": "string", "hasFlow": true, "storedAs": "flow", "taskCount": 0, "spec": { "nodes": [ {} ], "edges": [ {} ], "subflows": {} }, "flowGraph": {}, "warning": "string"}