---
title: "Attach App to Link"
method: POST
path: "/links/{link_id}/apps/{app_id}"
tags: ["Links"]
---

# Attach App to Link

`POST /links/{link_id}/apps/{app_id}`

## Request

- Base URL: `https://api.rebrandly.com/v1`
- URL: `https://api.rebrandly.com/v1/links/{link_id}/apps/{app_id}`
- Auth: API key in header `apikey`

Attach an app to a link.

**Requires:** `links.apps` feature flag.

## Path parameters

- `link_id` string, required
- `app_id` string, required

## Headers

- `apikey` string, required
- `Workspace` string

## Request body

- object
  - `path` string: Deep link path
  - `fallback` boolean: Use as fallback destination

## Response `200`

App attached

- object

## Other responses

- `403`: Feature not enabled or permission denied

---

[API](https://skmtc.dev/rebrandly/apis/rebrandly-api.md) - [All operations](https://skmtc.dev/rebrandly/apis/rebrandly-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rebrandly/apis/rebrandly-api/revisions/b098bf9fb684?raw)
