Canva icon

Canva

Trabalhe com a API Connect do Canva para designs e assets

Actions22

Overview

This node integrates with the Canva API to manage API keys associated with a user's Canva account. Specifically, the "Key" resource with the "List" operation allows users to retrieve a list of their API keys. This is useful for scenarios where you want to programmatically access or audit your API keys, manage integrations, or monitor usage.

Practical examples include:

  • Automatically fetching all API keys to display in a dashboard.
  • Integrating with other systems that require knowledge of existing API keys.
  • Auditing and managing API keys without manually logging into the Canva platform.

Properties

Name Meaning
Limit Maximum number of API keys to return. Accepts values from 1 to 100.
Continuation Token used for pagination to continue listing from a previous point.

Note: The property "Limit" appears twice in the provided definitions with slightly different defaults (10 and 50) and constraints; typically, the effective limit is between 1 and 100 as described.

Output

The node outputs a JSON array containing the list of API keys retrieved from the Canva API. Each item in the array represents an individual API key object with its associated metadata as returned by the API.

There is no binary data output for this operation.

Dependencies

  • Requires an API authentication token credential configured in n8n to authorize requests to the Canva API.
  • The node makes HTTP GET requests to the endpoint /keys on the Canva API base URL https://api.canva.com/rest/v1.

Troubleshooting

  • Common issues:

    • Invalid or expired API authentication token will cause authorization errors.
    • Exceeding the maximum allowed limit may result in request errors.
    • Incorrect continuation tokens can lead to empty results or errors in pagination.
  • Error messages:

    • Authorization errors typically indicate missing or invalid credentials; ensure the API key credential is correctly set up.
    • Rate limiting errors from the Canva API may occur if too many requests are made in a short time; implement retries or backoff.
    • Pagination errors may arise if the continuation token is malformed or expired; use the continuation token exactly as returned by the previous response.

Links and References

Discussion