GraphQL Endpoint
The Key Management Service exposes a GraphQL API endpoint:Schema Overview
The API provides two main categories of operations:- Encryption Operations: Generate and rotate encryption keys, encrypt data, and retrieve metrics
- Authentication Operations: Set and verify user passcodes and transaction PINs
Making Requests
Request Format
All GraphQL requests follow this structure:Example Request
Here’s an example of generating a client encryption key:Response Format
Successful responses return data in this format:Error Handling
Errors are returned in the GraphQL standard format:Schema Introspection
The GraphQL API supports introspection. You can query the schema to discover available types, queries, and mutations:Rate Limiting
The API implements rate limiting through throttler guards to protect against abuse. If you exceed rate limits, you’ll receive an appropriate error response.Next Steps
- Explore Encryption Operations for key management and data encryption
- Learn about Authentication Operations for passcode and PIN management