Overview
The MLE Public Keys API allows you to manage your public keys used for Message Level Encryption (MLE) with Method’s API. You can register, retrieve, and delete your public keys through these endpoints.Key Management Operations
Operation | Endpoint | Description |
---|---|---|
Create | POST /teams/mle/public_keys | Register a new public key |
List All | GET /teams/mle/public_keys | Retrieve all your registered keys |
Retrieve | GET /teams/mle/public_keys/:id | Get a specific key by ID |
Delete | DELETE /teams/mle/public_keys/:id | Delete (disable) a specific key |
Key Registration Types
You can register your public key using two methods:Direct Registration
Post your public key directly to Method with the JWK fields.Well-Known Endpoint
Provide a URL where Method can dynamically fetch your JWKS (JSON Web Key Set).Important: Each key ID (
kid
) can only be registered once using either method. If you have a public key available through your well-known endpoint, you should not register the same public key through direct registration, even if you change the kid
.Key Status
Your registered keys can have the following statuses:- active: The key is active and can be used for encryption
- disabled: The key has been deleted and cannot be used