Skip to main content
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.
Use this endpoint to display a user’s attestation collection, verify credentials, and build trust-based applications that rely on verified attributes and relationships.

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 attestations
  • relationship - Relationship attestations
  • achievement - Achievement attestations
  • reputation - Reputation attestations
  • identity - Identity verification attestations
  • custom - Custom schema attestations
string
Filter by attestation issuer (ZKS ID or wallet address)
string
Filter by attestation status
  • active - Active attestations (default)
  • expired - Expired attestations
  • revoked - Revoked attestations
  • all - All attestations regardless of status
string
Filter by attestation category
string
Filter by tags (comma-separated)
boolean
Filter by visibility
  • true - Public attestations only
  • false - Private attestations only
  • null - 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 date
  • trustScore - By trust score
  • schema - 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:

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
Implement caching to reduce API calls.