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

OperationEndpointDescription
CreatePOST /teams/mle/public_keysRegister a new public key
List AllGET /teams/mle/public_keysRetrieve all your registered keys
RetrieveGET /teams/mle/public_keys/:idGet a specific key by ID
DeleteDELETE /teams/mle/public_keys/:idDelete (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

Authentication

All MLE Public Keys API endpoints require authentication using your Method API key:
Authorization: Bearer sk_your_token