Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Security and Troubleshooting

Keep Feathery API credentials safe, recognize them, and fix common authentication errors.

Best Practices

  • One credential per integration. Give each integration its own OAuth app and each script its own personal access token, so you can revoke one without breaking the others.

  • Only the access it needs. Start with Read and add more only when a request needs it. See Scopes.

  • Test before live. Use the Test mode while you build.

  • Store secrets safely. Keep secrets and tokens in a secrets manager or environment variables. Don't put them in source code, shared configuration files, chat, or email.

  • Short lifetimes. Choose the shortest expiry that works, and rotate client secrets before they expire.

  • Clean up. Check Last used in the Developer tab and revoke credentials nobody uses.

  • When someone leaves. Their personal access tokens are deleted with their account. If they had an API key or an OAuth app secret, rotate it.

  • Move off API keys. API keys can do everything and never expire. Move integrations to OAuth apps, then turn off API keys.

Recognize Feathery Credentials

Feathery credentials start with a prefix, so you and secret scanners can tell them apart:

Prefix
Credential

fthr_cid_

OAuth app client ID

fthr_cs_

OAuth app secret

fthr_oat_

Access token

fthr_pat_

Personal access token

If a secret or token is shared by accident, revoke it in the Developer tab right away and create a new one.

Troubleshooting

401: Invalid or expired access token

The token expired, was revoked, or its access was reduced. OAuth app access tokens last 1 hour, so request a new one. For a personal access token, check its expiry in the Developer tab.

401: Send this token as Authorization: Bearer

You sent an access token or personal access token with the Token prefix. Use Authorization: Bearer <token>.

401: Your organization has turned off API keys

The error reads: "Your organization has turned off API keys. Use an OAuth app or a personal access token, or ask an admin to turn API keys back on." An Admin turned off Accept API keys.

401 from /oauth/token: invalid_client

The client ID or secret is wrong, or the secret was revoked or expired. Check the secret in the OAuth app's Secrets list.

400 from /oauth/token: invalid_scope

You requested a scope the OAuth app doesn't have. Request fewer scopes, or ask an Admin to add the access to the OAuth app.

403: insufficient_scope

The credential doesn't have access to that area. The WWW-Authenticate header names the scope it needs. Edit the OAuth app's access, or create a personal access token with that access.

403: This endpoint only accepts an org API key

Rotating the API key, GET /api/form/submission/batch/<form_id>/, and /api/form/hidden_field/ still need an API key. Use GET /api/form/submission/ and /api/field/hidden/ instead of the last two.

Can't create a token: your organization has turned off personal access tokens

An Admin turned off Let members create tokens, which also stops existing tokens. Ask an Admin to turn it back on, or to create an OAuth app.

Last updated

Was this helpful?