Get Attestations
Trust Layer
Get Attestations
Get all attestations for a specific identity
GET
Get Attestations
Overview
Retrieve all attestations associated with a specific identity. This endpoint provides comprehensive access to attestations with filtering, sorting, and pagination options, making it perfect for building reputation profiles and trust verification systems.Parameters
string
required
User identity (ZKS ID or wallet address)
ZKS ID is recommended for better performance and user experience
string
Filter by attestation schema
skill- Skill or expertise attestationsrelationship- Relationship attestationsachievement- Achievement attestationsreputation- Reputation attestationsidentity- Identity verification attestationscustom- Custom schema attestations
string
Filter by attestation issuer (ZKS ID or wallet address)
string
Filter by attestation status
active- Active attestations (default)expired- Expired attestationsrevoked- Revoked attestationsall- All attestations regardless of status
string
Filter by attestation category
string
Filter by tags (comma-separated)
boolean
Filter by visibility
true- Public attestations onlyfalse- Private attestations onlynull- All attestations (default)
number
Number of attestations to return (default: 50, max: 100)
number
Number of attestations to skip for pagination (default: 0)
string
Sort attestations by field
createdAt- By creation date (default)expiry- By expiry datetrustScore- By trust scoreschema- By schema type
string
Sort order
desc- Descending (default)asc- Ascending
boolean
Include detailed metadata (default: true)
boolean
Include evidence data (default: true)
Response
boolean
Indicates if the request was successful
string
Resolved wallet address
string
ZKS ID if available, null otherwise
array
Array of attestation objects
object
Pagination information
object
Attestation summary statistics
string
ISO 8601 timestamp of the response
Examples
Response Example
Use Cases
1. Reputation Profile
Create a comprehensive reputation profile:2. Skill Verification
Verify specific skills:3. Trust Score Calculation
Calculate overall trust score:4. Attestation Filtering
Filter attestations by various criteria:5. Attestation Analytics
Analyze attestation patterns:Best Practices
1. Caching
Cache attestation data for performance:2. Pagination
Handle large attestation collections:3. Real-time Updates
Subscribe to attestation updates:4. Verification
Verify attestation authenticity:Related Endpoints
- Create Attestation - Create new attestations
- Revoke Attestation - Revoke attestations
- Evaluate Policy - Evaluate trust policies
- Get Modules - Get available trust modules
Troubleshooting
”No attestations found”
Cause: No attestations match the criteria or user has no attestations. Solution:- Remove restrictive filters
- Check if the user has any attestations
- Verify the identity is correct
”Invalid schema filter”
Cause: Unsupported schema value. Solution:- Use supported schemas: skill, relationship, achievement, reputation, identity, custom
- Check for typos
”Invalid status filter”
Cause: Unsupported status value. Solution:- Use supported statuses: active, expired, revoked, all
- Check for typos
Rate Limits
Attestation requests are subject to rate limits:- Free tier: 60 requests per minute
- Starter tier: 300 requests per minute
- Professional tier: 1,000 requests per minute
- Enterprise tier: Custom limits