# Codemagic

<div align="left"><figure><img src="https://727226624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjFmyReUsbJqDjHEAlW%2Fuploads%2FQJbQCPUQJNcB9316zKn9%2Fcodemagic.png?alt=media&#x26;token=aa2b8795-21a4-463c-ba49-54046f53e808" alt=""><figcaption></figcaption></figure></div>

## Set up

### Navigate to the Integration settings view

1. Select an app in the top left corner from the Switcher
2. Navigate to **App Settings** by clicking the gear icon (⚙️) at the top of the Timeline sidebar
3. Click on **Integrations** in the sidebar

### Connect Codemagic

* Find the **Codemagic** integration module under the **CI/CD** section
* Click the **Connect** button
* Enter a Codemagic Personal Access Token
  * You can view your Personal Access Token within Codemagic by visiting Teams > Personal Account > Integrations. Find the **Codemagic API** item in the list, and click **Show** to reveal the key
* Click **Save**; you’ll be presented with a dialog in which to select your Codemagic app and your Release Candidate workflow, and (optionally) the name of your release workflow if different than your RC workflow

{% hint style="warning" %}
Due to Codemagic API limitations, there are a couple of scenarios in which Runway will not have access to your workflow data:

1. If you have not yet triggered a build at least once **before** setting up Codemagic in Runway.
2. If your Codemagic apps are configured using `codemagic.yaml`instead of the Workflow Editor.

For both scenarios, you'll see only a non-functional "Default Workflow" available for selection in Runway. For the second scenario, you'll need to reach out to our team to manually configure your workflow selections. Please share the workflow names and IDs when you do.
{% endhint %}

{% hint style="info" %}
Learn more about [builds and branches in Runway](https://docs.runway.team/getting-started/setting-up-your-integrations/builds-and-branches).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.runway.team/integrations/ci-cd/codemagic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
