Overview
The Giza API uses API key authentication. Authenticated endpoints require two headers on each request.Required Headers
Example Request
Obtaining API Credentials
1
Contact Giza
Reach out to the Giza team to request partner access.
Request Access
Visit gizatech.xyz to get started
2
Receive Credentials
You’ll receive:
- API Key: A unique key for authentication
- Partner Name: Your registered partner identifier
- Backend URL: The API endpoint URL
3
Configure Environment
Store credentials securely as environment variables:
.env
Authentication Scopes
Different endpoints require different authentication levels:Public Endpoints (No Auth Required)
These endpoints can be called without authentication:Authenticated Endpoints
These endpoints require API key authentication:Error Responses
Invalid or Missing API Key
401 Unauthorized
Access Denied
403 Forbidden
This occurs when:
- Trying to access another partner’s wallet
- API key is inactive
- Partner doesn’t have permission for the operation
Security Best Practices
Store credentials securely
Store credentials securely
- Use environment variables, not hardcoded strings
- Never commit
.envfiles to version control - Use a secrets manager in production (AWS Secrets Manager, HashiCorp Vault, etc.)
Rotate keys periodically
Rotate keys periodically
Contact Giza to regenerate your API key if:
- You suspect it’s been compromised
- An employee with access leaves your organization
- As part of regular security hygiene
Use HTTPS only
Use HTTPS only
Always use HTTPS when making API requests. Never send API keys over unencrypted connections.
Implement server-side calls
Implement server-side calls
Make all authenticated API calls from your backend:
Using with the SDK
The TypeScript SDK handles authentication automatically:SDK Overview
We recommend using the SDK for simplified authentication
Next Steps
Activate Wallet
Create your first agent
Get Protocols
Discover available protocols