Introduction
Welcome! This guide will walk you through the essentials of getting started with the Copera Public API. Whether you’re building a bot, workflow automation, or a custom integration, this page helps you understand the setup process and the first steps required to interact with Copera programmatically.Prerequisites
Before using the Public API, ensure the following:- You have access to a workspace eligible for integrations.
- You have the required user permissions to create and manage integrations.
- You understand the basic structure of Copera resources (Boards, Tables, Channels).
Step 1: Create an Integration
To use the Public API, you need an API key linked to an integration.- Open your Workspace Settings.
- Navigate to Integrations.
- Click Create new API key.
- Give your integration a name.
- Assign a bot name (this becomes the integration’s identity in channels).
- Choose the required permissions.
- Copy the API key immediately — it appears only once.
Step 2: Assign Permissions
Integrations operate under explicit permissions to ensure workspace security. Common permissions include:- ACCESS_CHANNELS — required to send messages in text channels.
- ACCESS_BOARDS — required to list and interact with boards.
Step 3: Make Your First API Request
Once your integration is created and permissions are set:Example: Send a Message
Send a text message to a channel:Step 4: Explore Core Resources
The Public API provides access to essential workspace data:Text Channels
- Send formatted text messages.
- Use Markdown and color tags.
- Rate limited at 100 requests/min.
Boards
- List boards you have access to.
- Retrieve tables and rows.
- Create new rows programmatically.
Rate Limits
All endpoints enforce per‑minute limits. See Rate Limits for details.Step 5: Handle Errors Gracefully
You should expect and handle API errors using:- HTTP status codes
- Standard error structure
{ error, code }
- Invalid IDs → 400
- Missing permissions → 403
- Exceeded rate limits → 429
Best Practices
- Store API keys securely — never commit them to source control.
- Validate your input before sending requests.
- Use retries with backoff for rate limits.
- Keep permissions scoped to the minimum required.
- Leverage Developer Mode (when available) to quickly copy resource IDs.
Summary
- Create an integration and generate an API key.
- Assign permissions and add the integration to required channels or boards.
- Start making API calls such as sending messages or interacting with boards.
- Follow rate limits and handle errors correctly.
- Explore the rest of this documentation for deeper functionality.