Use this file to discover all available pages before exploring further.
This guide walks you through issuing your first cryptographically signed attestation using the Truthlocks API. By the end, you’ll have a verifiable credential that anyone can validate.
Individual creator? If you want to protect a file (photo, code, design) rather than issue enterprise credentials, use the content protection guide instead. You can protect content with a single API call — no issuer setup required.
Prerequisites: You need a Truthlocks account and API key. Sign up at
console.truthlocks.com if you haven’t
already.
Prefer a visual approach? Every API endpoint in the API reference has an interactive playground where you can build requests, switch between Sandbox and Production environments, and send them directly from the docs.
Looking for SDKs or CLI tools? The Downloads page collects the CLI, SDKs, IDE plugins, and Docker images with copy-to-clipboard install commands.
1
Get Your API Key
Navigate to the API Keys section in your console dashboard. Create a new API key with the following scopes:
issuers:read - View your issuers
issuers:write - Create and manage issuers
attestations:mint - Create new attestations
Security: Your API key secret is only shown once. Store it securely in a secrets manager (AWS Secrets Manager, HashiCorp Vault, etc.). Never commit API keys to version control.
Your API key will look like:
tl_live_abc123def456gh789ijklmnopqrstuv
All endpoints accept both X-API-Key: <key> and Authorization: ApiKey <key> headers. Use whichever fits your HTTP client. See authentication for details.
2
Create an Issuer
Issuers are entities that can sign attestations. Each issuer has a unique identity, cryptographic keys, and a trust status. Create your first issuer:
Note: New issuers are activated immediately upon creation. You can start minting attestations right away without waiting for manual approval. If your organization needs a higher trust tier, you can submit an issuer application for review.
3
Register a Signing Key
Every issuer needs at least one Ed25519 signing key. You can generate keys locally or use our SDK to create them.
Critical: Never share or upload private keys to Truthlocks. Only the public key is registered. Keep private keys in secure hardware (HSM) or a secrets manager.
4
Mint an Attestation
Now you can create your first attestation. This example issues a verified email claim for a user:
Congratulations! You’ve just issued a cryptographically signed attestation. The log_index is its position in the transparency log, providing proof of when it was created.
5
Verify the Attestation
Anyone can verify your attestation using its ID. The verification endpoint is public and requires no authentication: