
Connectors / Finance · HTTP Connector
Automate Alegra with Tray.ai
Create an invoice, create a contact and create an item in Alegra, and start a workflow when Alegra sends “New client”.
Thanks — someone from our team will be in touch soon.
What can you do with Alegra on Tray.ai?
Alegra is cloud accounting and electronic invoicing software for small businesses in Latin America and Spain, covering sales, expenses, inventory, banking and payroll. Tray.ai connects to Alegra through the HTTP Connector, so your workflows can call the Alegra API alongside the rest of your stack.
- When Alegra sends “New invoice”, record the sale in your CRM against the customer.
- On “New client”, create the account in your CRM so sales and finance share one record.
- Create an invoice when a deal closes in your CRM, so billing starts the same day.
- Create a payment in Alegra when your payment processor confirms a charge.
- Connects through
- HTTP Connector
- Authentication
- Basic authentication
- Base URL
- https://api.alegra.com/api/v1
Set it up
Connect Alegra to Tray.ai
Each step uses Alegra's own API details, from its documentation.
Step 1
Save Alegra's username and password
Save the credentials Alegra gives you as a Tray.ai authentication. The HTTP Client sends them as basic auth. They stay out of the workflow and out of the logs.
Step 2
Point the HTTP Client at the API
Add an HTTP Client step and use https://api.alegra.com/api/v1 as the base URL. Or paste a cURL example from Alegra's API docs, and Tray.ai fills in the method, URL, and headers.
Step 3
Start with “List invoices”
It's one of 23 documented actions, under Invoices. The response comes back as data the next step can map into your other apps.
Step 4
Start workflows from Alegra events
Give Alegra the URL of a Tray.ai webhook trigger. “New client” can then start a workflow, and so can 2 other events.
What the Alegra API covers
6 resources and 23 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.
Invoices
- List invoices
- Create an invoice
- Update an invoice
- Void an invoice
- Send an invoice by email
Contacts
- List contacts
- Create a contact
- Update a contact
- Delete a contact
Items
- List items
- Create an item
- Update an item
- Delete an item
Payments
- List payments
- Create a payment
- Update a payment
- Delete a payment
Bills
- List bills
- Create a bill
- Update a bill
Webhook subscriptions
- Create a subscription
- List subscriptions
- Delete a subscription
Events Alegra can send to a Tray.ai webhook trigger
- New client
- New item
- New invoice
Checked against Alegra's own documentation on 2026-10-22
How Tray.ai makes this work
Alegra plugs into the whole Tray.ai platform
Intelligent Integration
Integrate and automate across 9,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn more →Agent Builder
Build AI agents that read, write, and take action in Alegra — with guardrails, audit, and human-in-the-loop.
Learn more →Agent Gateway for MCP
Expose Alegra actions as governed MCP tools — observable, rate-limited, authenticated.
Learn more →Tray Helix
Build apps on Alegra data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn more →More finance apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every finance connector →
Frequently asked questions
What can a Tray.ai workflow do in Alegra?
+
The Alegra API documents 23 actions across 6 resources (Invoices, Contacts, Items, Payments, Bills, Webhook subscriptions). For example: List invoices; List contacts; List items. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Alegra?
+
The Alegra API uses basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Which Alegra events can start a Tray.ai workflow?
+
Alegra sends 3 events to a webhook URL, for example: New client; New item; New invoice. A Tray.ai webhook trigger receives them and starts a workflow.
See Alegra working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks — someone from our team will be in touch soon.