Skip to content

What should I do if my AISwapLab key appears in a screenshot or repository?

Revoke the exposed key in account API keys, create a private replacement for affected integrations, and inspect recent usage. Deleting a screenshot or removing a repository line does not invalidate a copied secret. Do not send the leaked value to support or test it in a public checker; identify the entry by name and prefix.

PROTECT KEYS AND ACCOUNT ACCESSAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Revoke the matching entry; Restore the legitimate integration; Review account activity.
Workflow diagram: Revoke the matching entry → Restore the legitimate integration → Review account activity. Read the article for evidence and limits.

Contain access before tidying the evidence

A published credential can authenticate requests until revoked or expired. Replacing the local environment value alone leaves the old credential usable elsewhere. Repositories, build artifacts, screenshots and log aggregation may retain earlier copies, so cleanup and credential invalidation are separate tasks. Keep an incident timeline without reproducing the secret.

What to do next

  1. 01

    Revoke the matching entry

    Confirm the name and visible prefix of the compromised key. Record the revocation time and avoid disabling unrelated application credentials without identifying them.

  2. 02

    Restore the legitimate integration

    Create a narrowly scoped replacement with an appropriate expiry and monthly cap. Update private server configuration and verify /models before restoring normal generation controls.

  3. 03

    Review account activity

    Check usage and known job identifiers around the exposure window. Distinguish your own expected requests, uncertain jobs and unrecognized activity before deciding what needs support review.

A concrete example

Illustrative incident: a deployment log printed the Authorization header. Removing that log from a dashboard is useful cleanup, but the operator also revokes the credential and prevents the header from being logged again.

Before you call it ready

  • The exposed key is actually revoked.
  • The replacement is absent from public artifacts.
  • Recent usage is reviewed without new paid probes.

When to stop or choose another method

If you cannot confidently identify the compromised entry, pause the affected integration and inventory its credentials. Do not leave a known exposure active merely to avoid a configuration change.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation