/v1/connect/keys
GET {{baseUrl}}/v1/connect/keys
This API is currently provided as a preview. Be aware of the following:
- There might be unannounced breaking changes.
- Any breaking changes to preview APIs won't produce a new API version.
- Public integrations that use preview APIs will not pass the review process, and can't be made available to all Canva users.
The Keys API (connect/keys
) is a security measure you can use to verify the authenticity
of webhooks you receive from Canva Connect. The Keys API returns a
JSON Web Key (JWK), which you can use to
decrypt the webhook signature and verify it came from Canva and not a potentially malicious
actor. This helps to protect your systems from
Replay attacks.
The keys returned by the Keys API can rotate. We recommend you cache the keys you receive from this API where possible, and only access this API when you receive a webhook signed with an unrecognized key. This allows you to verify webhooks quicker than accessing this API every time you receive a webhook.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"keys":[{"crv":"\u003cstring\u003e","kid":"\u003cstring\u003e","kty":"\u003cstring\u003e","x":"\u003cstring\u003e"},{"crv":"\u003cstring\u003e","kid":"\u003cstring\u003e","kty":"\u003cstring\u003e","x":"\u003cstring\u003e"}]}