Saltar al contenido principal
Authentication

API Authentication

WorkFlows uses API keys with Bearer token authentication. API access is available on Business and Enterprise plans.

Getting an API Key

  1. 1.Go to Dashboard → Settings → Developers
  2. 2.Click Generate API Key
  3. 3.Copy the key immediately — it is only shown once. Keys start with wf_live_
Keep your API key secret. Never expose it in client-side code, public repos, or logs. If compromised, revoke it immediately and generate a new one.

Making Authenticated Requests

Include your API key in the Authorization header as a Bearer token:

cURL
curl https://www.workflows.com.es/api/v1/projects \
  -H "Authorization: Bearer wf_live_your_key_here"
JavaScript (fetch)
const res = await fetch("https://www.workflows.com.es/api/v1/projects", {
  headers: {
    "Authorization": "Bearer wf_live_your_key_here",
    "Content-Type": "application/json",
  },
});
const data = await res.json();
Python (requests)
import requests

res = requests.get(
    "https://www.workflows.com.es/api/v1/projects",
    headers={"Authorization": "Bearer wf_live_your_key_here"},
)
data = res.json()

Rate Limits

Rate limits are enforced per organization in 1-minute sliding windows. Every response includes rate-limit headers:

PlanLimit
FreeNo API access
StarterNo API access
ProNo API access
TeamNo API access
Business120 req/min
Enterprise600 req/min

Rate Limit Headers

HeaderDescription
X-RateLimit-LimitMax requests per minute for your plan
X-RateLimit-RemainingRequests remaining in current window
X-RateLimit-ResetUnix timestamp when the window resets
Retry-AfterSeconds until you can retry (only on 429)

Error Codes

All error responses follow a consistent format:

Error response
{
  "error": "Human-readable error message",
  "code": "MACHINE_READABLE_CODE"
}
StatusCodeDescription
400BAD_REQUESTMalformed request body or invalid parameters
401UNAUTHORIZEDMissing or invalid API key
403PLAN_UPGRADE_REQUIREDAPI access not available on your plan
404NOT_FOUNDResource not found
429RATE_LIMITEDToo many requests — check Retry-After header
500INTERNAL_ERRORServer error — retry with exponential backoff
WorkFlows DocsNeed help? Contact us