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
User identity (ZKS ID or wallet address)
ZKS ID is recommended for better performance and user experience
Filter by attestation schema
skill- Skill or expertise attestationsrelationship- Relationship attestationsachievement- Achievement attestationsreputation- Reputation attestationsidentity- Identity verification attestationscustom- Custom schema attestations
Filter by attestation issuer (ZKS ID or wallet address)
Filter by attestation status
active- Active attestations (default)expired- Expired attestationsrevoked- Revoked attestationsall- All attestations regardless of status
Filter by attestation category
Filter by tags (comma-separated)
Filter by visibility
true- Public attestations onlyfalse- Private attestations onlynull- All attestations (default)
Number of attestations to return (default: 50, max: 100)
Number of attestations to skip for pagination (default: 0)
Sort attestations by field
createdAt- By creation date (default)expiry- By expiry datetrustScore- By trust scoreschema- By schema type
Sort order
desc- Descending (default)asc- Ascending
Include detailed metadata (default: true)
Include evidence data (default: true)
Response
Indicates if the request was successful
Resolved wallet address
ZKS ID if available, null otherwise
Array of attestation objects
Pagination information
Attestation summary statistics
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