
Codemagic
Mobile teams juggle builds across Flutter, iOS, and Android daily. Your AI agent connects to Codemagic's REST API, triggers builds, retrieves build history, manages environment variables, and onboards team members, all without anyone opening the Codemagic dashboard.




From triggering builds to rotating environment secrets, these are the Codemagic operations your AI agent handles directly inside team chat.
Codemagic
See how mobile development teams use AI agents to control their Codemagic CI/CD pipeline from Slack, Teams, or any chat interface.
Release day arrives and the lead engineer types 'Trigger a production build from the release/3.2 tag.' Your AI Agent calls Codemagic's start build API with the app ID, workflow for production, and the tag name. The build kicks off on an Apple Silicon machine, and the agent returns the build ID and a link to monitor progress. The team ships without anyone logging into the CI dashboard.
After a credential leak, the security team needs every Firebase API key rotated across three apps. An engineer messages the AI Agent with the new key values. The agent fetches each app's variable groups, finds the matching variable, updates the value, and toggles the secure flag. All three apps have fresh secrets within minutes, and audit logs confirm every change.
A new contractor needs Codemagic access by end of day. The project manager tells the AI Agent, 'Invite alex@agency.io as a developer to team mobile-ios.' The agent sends the invite through Codemagic's team API and confirms the role assignment. The contractor receives their invitation email and starts contributing builds the same afternoon.

Codemagic
FAQs
The agent calls Codemagic's POST /builds endpoint with the required parameters: appId, workflowId, and either a branch or tag. You can also pass environment variable overrides and select a machine type like mac_mini_m1. The API returns a build ID immediately so the agent can report progress.
Navigate to Teams, then Personal Account, then Integrations, then Codemagic API, and click Show. Copy the token and paste it into the Tars tool configuration. This token is personal to your account, so every action the agent takes is attributed to you in Codemagic's audit logs.
Yes. The agent can update a variable's value and toggle its secure flag through Codemagic's update variable endpoint. Secure variables are encrypted at rest in Codemagic. The agent sends the new value over HTTPS, and Codemagic handles encryption. The plain-text value is never logged by Tars.
No. Tars calls Codemagic's API in real time and returns the response to the conversation. Build artifacts remain in Codemagic's storage. Source code is never downloaded or cached by Tars. The integration only reads metadata like build status, app names, and variable configurations.
Yes. Provide the email address, team ID, and role (developer for Member, owner for Admin). The agent calls the invite endpoint and Codemagic sends the invitation email. You must be a team admin for the invite to succeed. The agent will report any permission errors clearly.
Webhooks trigger builds automatically on every push or PR. The Tars integration gives your team manual, on-demand control through natural language. Need to rebuild a specific tag with different environment variables? Just ask the agent. It complements webhooks by covering scenarios that automated triggers do not handle.
Codemagic's API returns an error response, and the agent relays the message to the user. It will suggest checking the branch name or listing the application's configured branches. No broken build is queued, and no resources are consumed.
Yes. The agent supports two cache operations: delete all caches for an app or delete a specific cache by its ID. Cache deletion is asynchronous in Codemagic, so the agent confirms the request was accepted and the cleanup will complete shortly. This is useful when stale dependency caches cause build failures.
Don't limit your AI Agent to basic conversations. Watch how to configure and add powerful tools making your agent smarter and more functional.

Privacy & Security
At Tars, we take privacy and security very seriously. We are compliant with GDPR, ISO, SOC 2, and HIPAA.