Guide
Workflow API Access and Automation
Use the public Control API for operations your principal is allowed to perform. Current project keys do not provide general configuration editing or unrestricted Workflow reads.
For new app automations, configure and transfer the Workflow through the editor as an owner. Use narrowly scoped machine credentials for supported monitoring or explicitly granted execution. This replaces the earlier gateway route-upsert setup path.
Choose the principal before the endpoint
Use https://api.fasthook.io/v1 for machine calls. The dashboard uses its authenticated control proxy; a project API key is not the same principal as an owner dashboard session.
Current scoped keys offer control:read, control:execute, and tunnel:connect. There is no scoped control:edit capability. They cannot create, edit, import, publish, or delete Workflow configuration, manage provider accounts, or rotate project secrets.
Even control:read excludes credential-bearing definitions such as Workflows, Actions, Sources, and provider accounts. Use permitted workflow activity for machine monitoring; changing x-team-id does not give access to a different team.
Create a narrowly scoped machine key
An owner opens Settings → API keys → Create key. Choose Read for supported monitoring. Add Execute only for the operation classes the caller actually needs, and set its request-rate limit.
Save the one-time raw key into the caller's secret store. Do not embed it in a Workflow mapping, query string, source file, or log. For retirement or replacement, revoke that individual key and inspect its Audit.
Verify the caller without changing a Workflow
Set FASTHOOK_API_KEY and FASTHOOK_TEAM_ID securely in the calling environment. This Bash example reads the caller's identity and granted scopes; it does not create a resource.
curl --fail-with-body "https://api.fasthook.io/v1/auth/me" \
-H "Authorization: Bearer $FASTHOOK_API_KEY" \
-H "x-team-id: $FASTHOOK_TEAM_ID"Read failed-run activity
A key with control:read can use the workflow-activity surface for run status, timing, identifiers, and available Step summaries. This is not a configuration export or full payload retrieval.
Use the returned next_cursor for subsequent pages until it is null. Keep the same filters and time window, and do not treat one page as a complete history. The current maximum page size is 100.
curl --fail-with-body "https://api.fasthook.io/v1/workflow-activity?status=failed&limit=20" \
-H "Authorization: Bearer $FASTHOOK_API_KEY" \
-H "x-team-id: $FASTHOOK_TEAM_ID"Grant execution only when needed
Execute requires both control:execute and the matching allowed operation. For example, a run-retry grant does not also grant Action tests or arbitrary configuration edits.
The grants use route templates such as POST:/v1/workflows/:id/runs/:executionId/retry. They are not an allow-list of individual Workflow IDs: the operation can apply across the key's team. Do not describe this as a token limited to one Workflow.
Action tests and recovery calls can repeat real effects. Obtain the intended IDs from trusted operational context, inspect prior results, and choose the appropriate retry scope before submitting any execution.
Transfer configuration as an owner
For a portable configuration, use More Workflow actions → Export Workflow in the editor. Import Workflow creates a separate Draft; it does not replace or activate the original.
Select the destination accounts, resources, and webhook settings, then test and activate deliberately. A project key cannot turn this owner configuration process into a general CI import/edit pipeline.
The API has configuration endpoints for an appropriately authorized session, but the existence of an endpoint does not grant a machine key access to it. Do not put a personal dashboard session into CI to bypass the key policy.
Handle authorization and availability errors
- 401: verify the credential and authentication method.
- 403 forbidden_team_access: verify the selected team and membership.
- 403 project_owner_required: the session principal lacks the owner permission for the change.
- 403 project_api_key_scope_denied: inspect both scope/execute grants and the resource restrictions; broader Read does not unlock excluded credential definitions.
- 429: respect Retry-After and reduce the caller's request rate.
- 503 project_api_key_policy_unavailable: authorization policy storage is unavailable; do not treat it as success or bypass the check.
Separate current Workflow work from gateway scripts
Older scripts that upsert Sources, Destinations, and Connections do not create an app Workflow graph. Gateway Request replay and Event retry also have a different scope from Workflow recovery.
The original reference links remain available below for existing configurations. Review their earlier routing context rather than applying them as the current Workflow setup sequence.
Next
Earlier gateway links
These links belong to the earlier routing model and are retained at their original addresses.