PhotoHub

API Key Help & Troubleshooting

Having trouble accessing an API-secured shared image? This guide will help you resolve the issue.
Common Issues & Solutions

Problem: The image you're trying to access was shared with API key security enabled, but no API key was provided.

Solutions:
  1. Get the API key from the image owner: The person who shared this image should provide you with their API key
  2. Add the API key to the URL: Once you have the API key, add &api_key=YOUR_API_KEY_HERE to the end of the share URL
  3. Example: If your URL is https://example.com/photos/shared?token=abc123, it should become https://example.com/photos/shared?token=abc123&api_key=pk_your_key_here

Problem: The API key you provided doesn't match any valid API keys in the system.

Possible causes:
  • The image owner rotated their API key after sharing the link
  • You're using an old or incorrect API key
  • There's a typo in the API key
Solutions:
  1. Contact the image owner: Ask them to provide their current API key
  2. Check for typos: Make sure you copied the API key correctly
  3. Request a new share link: Ask the owner to generate a new share link with their current API key

Problem: The share link itself is no longer valid.

Possible causes:
  • The share link has expired (share links have expiration dates)
  • The image owner revoked the share link
  • The image was deleted
  • There's an error in the share token
Solutions:
  1. Request a new share link: Contact the image owner and ask for a fresh share link
  2. Check the URL: Make sure you have the complete and correct share URL
For Image Owners

To share images with API key security:

  1. Generate an API key in your account settings (if you don't have one)
  2. When creating a share link, check "API Secured" option
  3. Share both the link AND your API key with the recipient
  4. Remember: If you rotate/change your API key, previously shared links will need new keys
Debug a Share Link

If you have a share link that's not working, you can test it here:

Still Need Help?

If you're still having trouble accessing the shared image:

  • Contact the person who shared the image with you
  • Ask them to generate a new share link
  • Make sure they provide you with their current API key