All requests to the Connextify API must authenticate using a Bearer token in the standard HTTP Authorization header.
Authorization: Bearer connextify_your_api_key_here

Getting an API key

You can create and manage API keys inside your developer dashboard:
  1. Log in to app.connextify.com/login.
  2. Go to Dashboard → API Keys (or open app.connextify.com/dashboard/api-keys).
  3. Click Create New API Key, label it (e.g. staging-worker or prod-backend), and select the permissions your application needs.
  4. Copy the key immediately and save it in your project’s .env file or secrets manager.

Making authenticated requests

Pass the key as a Bearer token in your HTTP headers:
curl -X GET https://connextify.com/api/v1/short-urls \
  -H "Authorization: Bearer connextify_live_abc123"

Query parameter fallback (legacy only)

For quick CLI testing or legacy systems that cannot set custom HTTP headers, you can pass the key in the query string:
curl "https://connextify.com/api/v1/short-urls?api_key=connextify_live_abc123"
Avoid passing API keys in query parameters for production services. Query parameters often get logged in plain text in reverse proxy logs, browser histories, and CDN caches.

API key permissions & workspace roles

Dashboard API keys are issued with channel access (api, mcp, or both) and inherit the active permissions of the account or Team Workspace they belong to:
  • Personal Workspace: Keys act directly under your user account’s plan limits and features.
  • Team Workspaces: Keys created while switched into a shared workspace are bound to that workspace (workspaceOwnerUid). Every API request checks your live Workspace Role Group (api_access / mcp_access / analytics_access), tool CRUD permissions (view, create, edit, delete), and asset visibility scope (all vs own).

Team workspaces & header scoping

If you collaborate inside shared Team Workspaces, authentication resolves both the target workspace owner and the acting team member:
  • Workspace-bound API keys & OAuth tokens: API keys created while switched into a Team Workspace (and OAuth apps authorized for a Team Workspace) are automatically bound to that workspace owner (workspaceOwnerUid) and require the api_access or mcp_access capability on your role.
  • X-Workspace-Id header: Pass X-Workspace-Id: <workspace_owner_uid> on Firebase/session requests to target a specific joined workspace (or "personal" / your own UID for your Personal Workspace). An explicit X-Workspace-Id pointing to an unauthorized or revoked workspace fails closed with 403 WORKSPACE_ACCESS_REVOKED, and passing an X-Workspace-Id header that conflicts with a workspace-bound API key or OAuth token returns 403 WORKSPACE_SCOPE_MISMATCH. Stale browser workspace cookies (without an explicit X-Workspace-Id header) automatically clear and fall back to your Personal Workspace.
  • Automatic revocation: If you leave a team, have your membership revoked, or lose api_access/mcp_access, workspace-bound keys immediately return 403 WORKSPACE_ACCESS_REVOKED or 403 CAPABILITY_DENIED.
See Team Workspaces & RBAC for full details.

Security checklist

  • Keep keys in environment variables: Never commit API keys to Git repositories or hardcode them in your client-side JavaScript.
  • Separate keys by environment: Create distinct keys for local development, staging, and production so revoking a compromised local key does not break your live production traffic.
  • Scope workspace roles carefully: Grant Team Workspace members only the capabilities (api_access, mcp_access, analytics_access) and tool CRUD permissions (view, create, edit, delete) they require.
  • Rotate keys periodically: If an engineer leaves or a server is decommissioned, revoke old keys from the dashboard.

Authentication error responses

If an authenticated request fails, the API returns a 401 Unauthorized or 403 Forbidden with a JSON body explaining why:

Missing API key (401)

{
  "message": "Authentication required"
}

Invalid or revoked key (401)

{
  "message": "Invalid API key"
}

Missing permission or workspace access (403)

{
  "success": false,
  "error": "You do not have access to REST API Access in this workspace. Please contact your team owner or workspace administrator to request access.",
  "code": "CAPABILITY_DENIED",
  "status": 403,
  "capability": "api_access"
}
Workspace-scoped errors also return top-level code fields including ACTION_PERMISSION_DENIED, SCOPE_ACCESS_DENIED, WORKSPACE_SCOPE_MISMATCH, and WORKSPACE_ACCESS_REVOKED. See Error Codes for remediation steps.

Next steps

Rate Limits

Check request limits per plan and how to handle 429 retries.

Error Codes

Full list of HTTP status codes and error payloads.