Managing Your API Keys

Modified on Mon, 20 Apr at 8:45 AM

All key management actions are available from the Integrations Hub › API screen in your Admin Dashboard. Each key row has a three-dot menu (⋮) on the right side with the following actions:

Note: To create a new API Key, refer to the article Getting Started with the Visitly API 


View Details

See the full configuration and usage information for an API key.

 

  1. Find the key in your API keys list.

  2. Click the three-dot menu (⋮) on the right side of that key’s row.

  3. Select View Details.


This shows the key’s name, scope, assigned sites, status, creation date, and recent usage history.

Edit Key

Update a key’s name or access level without generating a new key value.

  1. Click the three-dot menu (⋮) next to the key you want to edit.

  2. Select Edit Key.

  3. Update the key name, access level, or site assignment as needed.

  4. Click Save to apply your changes.

    Tip: Editing a key does not change the key value itself. Your existing integrations will continue working without any code changes.

Rotate Key

Generate a new key value while keeping the same configuration (name, scope, and site assignments). Use this to periodically refresh credentials as part of your security practices.

  1. Click the three-dot menu (⋮) next to the key you want to rotate.

  2. Select Rotate Key.

  3. Confirm the rotation when prompted.

  4. Copy the new key value immediately; it will only be shown once. 



    Important: The old key is invalidated immediately upon rotation. Update your integrations with the new key right away to avoid downtime.

Revoke Key

Deactivate a key so it can no longer be used to make API requests. Revoke a key immediately if you suspect it has been compromised.

  1. Click the three-dot menu (⋮) next to the key you want to revoke.

  2. Select Revoke Key (shown in red).

  3. Confirm the revocation when prompted.

Once revoked, the key’s status changes to Revoked and any API request using it will return a 401 Unauthorized error. Revoked keys appear under the Revoked filter tab at the top of the API keys list.

Tip: Revoking a key is required before you can delete it. If you just want to temporarily disable a key, revoking is the right action.

Delete Key

Permanently remove a key from your organization. This action is irreversible.

  1. First, revoke the key using the steps above. Active keys cannot be deleted directly.

  2. Click the three-dot menu (⋮) on the revoked key.

  3. Select Delete Key (shown in red).

  4. Confirm the deletion when prompted.

    Important: Deletion is instant and irreversible. If you attempt to delete an active key without revoking it first, the system will return an error. Always revoke before deleting.


Quick Reference

Action

What Happens

Reversible?

View Details

View the full configuration, scope, sites, and usage history of a key.

N/A

Edit Key

Update the key’s name, scope, or site assignment. The key value stays the same.

Yes

Rotate Key

Generates a new key value. The old key stops working immediately.

No — old key is gone

Revoke Key

Deactivates the key. Status changes to Revoked.

No

Delete Key

Permanently removes the key. Must be revoked first.

No — irreversible


Error Handling

If something goes wrong, the API returns a standard HTTP error code along with a JSON error body:

{ "error": { "code": "ERROR_CODE", "message": "Description", "details": {}, "requestId": "abc123" } }


Status Code

Meaning

Common Cause

400

Bad Request

Missing required field or invalid value (e.g., wrong scope format).

401

Unauthorized

Missing API key, invalid key, or expired/revoked key.

403

Forbidden

Your key doesn’t have the required access level (e.g., a Read key trying to create a record).

404

Not Found

The resource you requested doesn’t exist.

409

Conflict

Action conflicts with current state (e.g., trying to delete a key that hasn’t been revoked).

429

Too Many Requests

You’ve hit the rate limit. Wait and retry with exponential backoff.

Tip: Always include the requestId from error responses when contacting support. It helps us trace issues quickly.
Best Practices

  • Store keys securely. Never hard-code API keys in your source code. Use environment variables or a secrets manager.

  • Use the least privilege. Assign the narrowest access level that your integration requires.

  • Rotate keys periodically. Schedule regular key rotations (e.g., every 90 days) as part of your security hygiene.

  • Handle errors gracefully. Implement retry logic with exponential backoff for 429 (rate-limited) responses.

  • Use separate keys per integration. This way, you can revoke or rotate one key without affecting others.

Need Help?

We’re here to support you at every step:


Include your organization name, the API key name (not the key itself), and the requestId from any error responses when reaching out for support.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article