> ## Documentation Index
> Fetch the complete documentation index at: https://chainpatrol.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Obtener conexiones de assets

> Answers 'what led to this asset, and where does it lead?'. Takes one asset (by `assetId` or `content`) and returns the assets linked into it (`upstream`: the page that ran the ad, the ad that linked to it, the account that claimed it) and out of it (`downstream`: what it redirects to, links to or claims), followed `depth` hops on each side, as two graphs of assets and typed links. Nodes carry the same id, type, content and status that `/asset/search` returns. Available to organizations the threat graph connections rollout has been turned on for; others receive `FORBIDDEN`.

## Descripción general

Conexiones de assets responde dos preguntas sobre un **Asset** (activo digital: URL, dirección,
perfil, app, etc.): **qué llevó a él** y **a dónde lleva**. ChainPatrol registra un vínculo cada vez
que un asset nombra a otro en un escaneo: la página de destino de un anuncio, la URL de una
publicación, una redirección, los enlaces salientes de una página, el sitio web que un perfil declara
como suyo, una wallet a la que una página les pide a las víctimas que paguen. Este endpoint sigue
esos vínculos desde el asset que indicas, unos pocos saltos hacia cada lado, y devuelve dos
grafos:

* **upstream** - lo que lleva al asset: los anuncios y publicaciones que enlazan a él, las páginas
  y cuentas que los publicaron, los perfiles que lo declaran como propio.
* **downstream** - a dónde lleva el asset: a qué redirige, a qué enlaza, qué carga, a dónde envía
  formularios, qué declara como propio o dónde pide que le paguen.

Cada grafo es una lista de **assets** y una lista de **links** (vínculos) entre ellos. Un vínculo se lee
como una oración, `fromAssetId` → `type` → `toAssetId`: `PUBLISHED`, `LINKS_TO`,
`REDIRECTS_TO`, `CLAIMS`, `REPLIES_TO`, `REPOSTS`, `MENTIONS`, `DEPENDS_ON`,
`MEMBER_OF`, `LOADS`, `SUBMITS_TO` o `USES_WALLET`. Los assets incluyen los mismos `id`,
`type`, `content` y `status` que devuelve [Buscar assets](https://chainpatrol.com/docs/es/external-api/asset-search.md).

> [!NOTE]
>
> Conexiones de assets se está habilitando de forma gradual, una organización a la vez. Una clave de
> API de organización que no forma parte del despliegue recibe `403` con el mensaje "Asset
> connections are not available for this organization". Contacta a ChainPatrol para solicitar
> acceso.

## Inicio rápido

### Autenticación

Incluye la clave de API de tu organización en el encabezado `X-API-KEY`:

```bash theme={null}
X-API-KEY: <api-key>
```

### Solicitud de ejemplo

Indica el asset por su contenido (una URL, un dominio, una dirección, un perfil de red social, …) o por su
`assetId` de ChainPatrol: exactamente uno de los dos. `depth` y `limit` son opcionales.

```bash cURL theme={null}
curl -X POST 'https://app.chainpatrol.io/api/v2/asset/connections' \
  -H 'X-API-KEY: <api-key>' \
  -H 'Content-Type: application/json' \
  -d '{ "content": "your-brand-login.example", "depth": 2 }'
```

```typescript TypeScript theme={null}
const response = await fetch("https://app.chainpatrol.io/api/v2/asset/connections", {
  method: "POST",
  headers: {
    "X-API-KEY": "<api-key>",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ content: "your-brand-login.example", depth: 2 }),
});

const { asset, upstream, downstream } = await response.json();
```

```python Python theme={null}
import requests

response = requests.post(
    "https://app.chainpatrol.io/api/v2/asset/connections",
    headers={"X-API-KEY": "<api-key>"},
    json={"content": "your-brand-login.example", "depth": 2},
)
data = response.json()
```

## Cuerpo de la solicitud

| Campo | Tipo | Obligatorio | Descripción |
| - | - | - | - |
| `assetId` | `number` | Uno de los dos | ID del asset en ChainPatrol, tal como lo devuelve Buscar assets o como aparece en `assets` de una respuesta anterior. |
| `content` | `string` | Uno de los dos | Contenido del asset: una URL, un dominio, una dirección de wallet, un perfil de red social, una ficha de app, etc. Se interpreta (parse) de la misma forma en que lo hace Buscar assets. |
| `depth` | `number` | No | Saltos que se siguen hacia cada lado, de `1` a `3`. Valor predeterminado: `2`. Un salto son los assets vinculados directamente al tuyo; con dos también se siguen los vínculos de esos assets. |
| `limit` | `number` | No | Vínculos de cada tipo que se leen por asset en cada lado, de `1` a `100`. Valor predeterminado: `10`. Es por tipo, así que una redirección sigue apareciendo aunque haya cincuenta enlaces salientes. |

## Respuesta

Un sitio de phishing promocionado con un anuncio de Meta, que redirige a un drenador de wallets (wallet drainer) que enlaza
al sitio real de la marca:

```json theme={null}
{
  "asset": {
    "id": 4175269,
    "type": "URL",
    "content": "your-brand-login.example",
    "status": "BLOCKED"
  },
  "upstream": {
    "assets": [
      { "id": 4175269, "type": "URL", "content": "your-brand-login.example", "status": "BLOCKED", "hops": 0, "expanded": true, "hasMoreLinks": false, "truncatedLinkTypes": [], "stop": null },
      { "id": 4175301, "type": "META_AD", "content": "facebook.com/ads/library/?id=1499561385379659", "status": "BLOCKED", "hops": 1, "expanded": true, "hasMoreLinks": false, "truncatedLinkTypes": [], "stop": null },
      { "id": 4175298, "type": "FACEBOOK", "content": "facebook.com/brand-support-desk", "status": "UNKNOWN", "hops": 2, "expanded": false, "hasMoreLinks": false, "truncatedLinkTypes": [], "stop": null }
    ],
    "links": [
      { "fromAssetId": 4175301, "type": "LINKS_TO", "toAssetId": 4175269, "firstSeenAt": "2026-11-02T09:14:51.000Z", "lastSeenAt": "2026-11-08T21:40:03.000Z" },
      { "fromAssetId": 4175298, "type": "PUBLISHED", "toAssetId": 4175301, "firstSeenAt": "2026-11-02T09:14:51.000Z", "lastSeenAt": "2026-11-08T21:40:03.000Z" }
    ]
  },
  "downstream": {
    "assets": [
      { "id": 4175269, "type": "URL", "content": "your-brand-login.example", "status": "BLOCKED", "hops": 0, "expanded": true, "hasMoreLinks": false, "truncatedLinkTypes": [], "stop": null },
      { "id": 4175310, "type": "URL", "content": "wallet-drainer.example", "status": "BLOCKED", "hops": 1, "expanded": true, "hasMoreLinks": false, "truncatedLinkTypes": [], "stop": null },
      { "id": 102, "type": "URL", "content": "your-brand.example", "status": "ALLOWED", "hops": 2, "expanded": false, "hasMoreLinks": false, "truncatedLinkTypes": [], "stop": "allowed" }
    ],
    "links": [
      { "fromAssetId": 4175269, "type": "REDIRECTS_TO", "toAssetId": 4175310, "firstSeenAt": "2026-11-02T09:15:07.000Z", "lastSeenAt": "2026-11-08T21:40:12.000Z" },
      { "fromAssetId": 4175310, "type": "LINKS_TO", "toAssetId": 102, "firstSeenAt": "2026-11-02T09:15:07.000Z", "lastSeenAt": "2026-11-08T21:40:12.000Z" }
    ]
  }
}
```

### Nivel superior

| Campo | Tipo | Descripción |
| - | - | - |
| `asset` | `object` | El asset que indicaste: `id`, `type`, `content`, `status`. |
| `upstream` | `graph` | Lo que lleva al asset. Su lista `assets` empieza con el propio asset. |
| `downstream` | `graph` | A dónde lleva el asset. Su lista `assets` empieza con el propio asset. |

### Cada asset de un grafo

| Campo | Tipo | Descripción |
| - | - | - |
| `id` | `number` | ID del asset en ChainPatrol. |
| `type` | `string` | Tipo de asset, p. ej. `URL`, `TWITTER`, `META_AD`, `FACEBOOK`, `ADDRESS`. Consulta [Tipos de asset](https://chainpatrol.com/docs/es/glossary/asset-types/page.md). |
| `content` | `string` | Contenido del asset. |
| `status` | `string` | `BLOCKED`, `ALLOWED` o `UNKNOWN`. |
| `hops` | `number` | Cantidad de vínculos entre este asset y el tuyo en la ruta por la que se llegó a él por primera vez. `0` para tu asset. |
| `expanded` | `boolean` | Indica si se leyeron los vínculos propios de este asset en este lado. Es `false` más allá de `depth`, más allá del límite por salto o cuando `stop` tiene un valor. |
| `hasMoreLinks` | `boolean` | Indica si este asset tiene más vínculos en este lado de los que permitió `limit`. |
| `truncatedLinkTypes` | `string[]` | Los tipos de vínculo de los que tiene más de lo que permitió `limit`. Vuelve a consultar con el `id` de este asset como `assetId` para leerlos. |
| `stop` | `string \| null` | Por qué no se siguieron los vínculos de este asset aunque estaba dentro de `depth`: `parking` (una página de parking o de dominio en venta), `furniture` (una página de plataforma a la que enlazan todos los sitios), `allowed` (un asset revisado y permitido), `allowed-site` (un subdominio de un sitio permitido). Cada uno de estos conecta assets que no tienen relación entre sí, así que el recorrido muestra el asset y se detiene. |

### Cada vínculo de un grafo

| Campo | Tipo | Descripción |
| - | - | - |
| `fromAssetId` | `number` | El asset desde el que parte el vínculo. |
| `type` | `string` | Cómo están vinculados los dos, leído como origen → tipo → destino. Consulta la lista de arriba. |
| `toAssetId` | `number` | El asset al que apunta el vínculo. |
| `firstSeenAt` | `string` | Cuándo se observó el vínculo por primera vez (ISO 8601, UTC). |
| `lastSeenAt` | `string` | Cuándo se observó el vínculo por última vez (ISO 8601, UTC). |

> [!NOTE]
>
> Los vínculos son relaciones observadas que se leen de los escaneos de ChainPatrol. Un asset escaneado
> antes de que se registraran los vínculos, o que nunca fue escaneado, no tiene ninguno. Los vínculos
> leídos de un escaneo del asset propio de otra organización (su dominio, cuenta o app incluidos en la
> **Allowlist**, la lista de permitidos) se omiten, de la misma forma en que [Buscar assets](https://chainpatrol.com/docs/es/external-api/asset-search.md) y
> [Obtener resultado del escaneo](https://chainpatrol.com/docs/es/external-api/scan-result.md) omiten los escaneos de esa organización.

## Seguir recorriendo

Una respuesta está acotada: `depth` saltos, `limit` vínculos de cada tipo por asset y, como
máximo, 25 assets expandidos por salto. Dos campos indican dónde hay más. Un asset con
`expanded: false` y sin `stop` quedó fuera de esos límites; un asset con `hasMoreLinks: true`
tenía más vínculos de los tipos indicados en `truncatedLinkTypes` de los que permitió `limit`. En ambos casos,
vuelve a llamar al endpoint con el `id` de ese asset como `assetId` para continuar desde él.

## Errores

| Estado | Cuándo |
| - | - |
| `400` | Se enviaron tanto `content` como `assetId` o ninguno de los dos, `depth` está fuera de `1`–`3`, o `limit` está fuera de `1`–`100`. |
| `401` | No se envió ninguna clave de API. |
| `403` | La organización no forma parte del despliegue, o la clave es una clave de usuario en lugar de una clave de organización. |
| `404` | ChainPatrol no tiene ese asset. |

## Relacionado

* [Buscar assets](https://chainpatrol.com/docs/es/external-api/asset-search.md)
* [Obtener resultado del escaneo](https://chainpatrol.com/docs/es/external-api/scan-result.md)
* [Tipos de asset](https://chainpatrol.com/docs/es/glossary/asset-types/page.md)


## OpenAPI

````yaml POST /asset/connections
openapi: 3.0.3
info:
  title: ChainPatrol External API - OpenAPI 3.0
  description: ChainPatrol External API documentation
  version: 2.0.0
servers:
  - url: https://app.chainpatrol.io/api/v2
security: []
tags:
  - name: asset
  - name: report
  - name: dark-web
externalDocs:
  url: https://chainpatrol.com/docs
paths:
  /asset/connections:
    post:
      tags:
        - asset
      summary: Asset connections
      description: >-
        Answers 'what led to this asset, and where does it lead?'. Takes one
        asset (by `assetId` or `content`) and returns the assets linked into it
        (`upstream`: the page that ran the ad, the ad that linked to it, the
        account that claimed it) and out of it (`downstream`: what it redirects
        to, links to or claims), followed `depth` hops on each side, as two
        graphs of assets and typed links. Nodes carry the same id, type, content
        and status that `/asset/search` returns. Available to organizations the
        threat graph connections rollout has been turned on for; others receive
        `FORBIDDEN`.
      operationId: assetConnections
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                assetId:
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                  description: >-
                    ID of the asset to start from, as returned by
                    `/asset/search`.
                content:
                  type: string
                  minLength: 1
                  description: >-
                    Content of the asset to start from (a URL, domain, social
                    handle, app listing or wallet address), parsed the way
                    `/asset/search` parses it. Pass either `assetId` or
                    `content`.
                depth:
                  type: integer
                  minimum: 1
                  maximum: 3
                  default: 2
                  description: >-
                    How many hops to follow on each side (1 to 3, default 2).
                    One hop is the assets directly linked to the asset; two also
                    follows their links.
                limit:
                  type: integer
                  minimum: 1
                  maximum: 100
                  default: 10
                  description: >-
                    How many links of each type to read per asset on each side
                    (1 to 100, default 10). Per type, so one redirect still
                    shows behind fifty outbound links. `truncatedLinkTypes` on
                    an asset says which types had more.
              description: >-
                Asset connections request body


                What led to an asset and where it leads: the links into it (who
                published,

                linked to, redirected to or claimed it) and out of it, followed
                `depth` hops

                on each side. Links are observed relationships read from scans,
                so an asset

                scanned before links were recorded has none.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  asset:
                    type: object
                    properties:
                      id:
                        type: number
                        description: Asset ID
                      type:
                        type: string
                        enum:
                          - URL
                          - PAGE
                          - ADDRESS
                          - DISCORD
                          - LINKEDIN
                          - TWITTER
                          - FACEBOOK
                          - YOUTUBE
                          - REDDIT
                          - TELEGRAM
                          - GOOGLE_APP_STORE
                          - APPLE_APP_STORE
                          - AMAZON_APP_STORE
                          - MICROSOFT_APP_STORE
                          - TIKTOK
                          - INSTAGRAM
                          - THREADS
                          - MEDIUM
                          - CHROME_WEB_STORE
                          - MOZILLA_ADDONS
                          - OPERA_ADDONS
                          - EMAIL
                          - PATREON
                          - OPENSEA
                          - FARCASTER
                          - IPFS
                          - GOOGLE_FORM
                          - WHATSAPP
                          - DISCORD_USER
                          - QUORA
                          - GITHUB
                          - TEACHABLE
                          - SUBSTACK
                          - DEBANK
                          - TAWK_TO
                          - JOTFORM
                          - PRIMAL
                          - BLUESKY
                          - SNAPCHAT
                          - DESO
                          - PINTEREST
                          - FLICKR
                          - GALXE
                          - VELOG
                          - NPM
                          - PYPI
                          - HEX
                          - DOCKER_HUB
                          - VOCAL_MEDIA
                          - TECKFINE
                          - TENDERLY
                          - HACKMD
                          - ETSY
                          - ZAZZLE
                          - BASENAME
                          - BILIBILI_TV
                          - VIMEO
                          - DAILYMOTION
                          - PHONE_NUMBER
                          - SLACK
                          - CALENDLY
                          - NGROK
                          - RARIBLE
                          - RUST_PACKAGE
                          - FLATHUB
                          - VIDLII
                          - VEVIOZ
                          - ISSUU
                          - SOUNDCLOUD
                          - ZAPPER
                          - REDNOTE
                          - SAMSUNG_APP_STORE
                          - HUAWEI_APP_STORE
                          - XIAOMI_APP_STORE
                          - TENCENT_APP_STORE
                          - OPPO_APP_STORE
                          - VIVO_APP_STORE
                          - F_DROID
                          - GOOGLE_AD
                          - BING_AD
                          - TWITCH
                          - BEHANCE
                          - ZORA
                          - META_AD
                          - SIGNAL
                          - DEVIANTART
                          - BANDCAMP
                          - ARCHIVE_ORG
                          - FIVE_HUNDRED_PX
                          - LUMA
                          - SMARTMONEYMATCH
                          - APK_GOLD
                          - GLASSDOOR
                          - PUMP_FUN
                          - TUMBLR
                          - MASTODON
                        description: Asset type
                      content:
                        type: string
                        description: Asset content
                      status:
                        type: string
                        enum:
                          - UNKNOWN
                          - ALLOWED
                          - BLOCKED
                        description: Asset status
                    required:
                      - id
                      - type
                      - content
                      - status
                    description: The asset the connections were read from
                  upstream:
                    type: object
                    properties:
                      assets:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: number
                              description: Asset ID
                            type:
                              type: string
                              enum:
                                - URL
                                - PAGE
                                - ADDRESS
                                - DISCORD
                                - LINKEDIN
                                - TWITTER
                                - FACEBOOK
                                - YOUTUBE
                                - REDDIT
                                - TELEGRAM
                                - GOOGLE_APP_STORE
                                - APPLE_APP_STORE
                                - AMAZON_APP_STORE
                                - MICROSOFT_APP_STORE
                                - TIKTOK
                                - INSTAGRAM
                                - THREADS
                                - MEDIUM
                                - CHROME_WEB_STORE
                                - MOZILLA_ADDONS
                                - OPERA_ADDONS
                                - EMAIL
                                - PATREON
                                - OPENSEA
                                - FARCASTER
                                - IPFS
                                - GOOGLE_FORM
                                - WHATSAPP
                                - DISCORD_USER
                                - QUORA
                                - GITHUB
                                - TEACHABLE
                                - SUBSTACK
                                - DEBANK
                                - TAWK_TO
                                - JOTFORM
                                - PRIMAL
                                - BLUESKY
                                - SNAPCHAT
                                - DESO
                                - PINTEREST
                                - FLICKR
                                - GALXE
                                - VELOG
                                - NPM
                                - PYPI
                                - HEX
                                - DOCKER_HUB
                                - VOCAL_MEDIA
                                - TECKFINE
                                - TENDERLY
                                - HACKMD
                                - ETSY
                                - ZAZZLE
                                - BASENAME
                                - BILIBILI_TV
                                - VIMEO
                                - DAILYMOTION
                                - PHONE_NUMBER
                                - SLACK
                                - CALENDLY
                                - NGROK
                                - RARIBLE
                                - RUST_PACKAGE
                                - FLATHUB
                                - VIDLII
                                - VEVIOZ
                                - ISSUU
                                - SOUNDCLOUD
                                - ZAPPER
                                - REDNOTE
                                - SAMSUNG_APP_STORE
                                - HUAWEI_APP_STORE
                                - XIAOMI_APP_STORE
                                - TENCENT_APP_STORE
                                - OPPO_APP_STORE
                                - VIVO_APP_STORE
                                - F_DROID
                                - GOOGLE_AD
                                - BING_AD
                                - TWITCH
                                - BEHANCE
                                - ZORA
                                - META_AD
                                - SIGNAL
                                - DEVIANTART
                                - BANDCAMP
                                - ARCHIVE_ORG
                                - FIVE_HUNDRED_PX
                                - LUMA
                                - SMARTMONEYMATCH
                                - APK_GOLD
                                - GLASSDOOR
                                - PUMP_FUN
                                - TUMBLR
                                - MASTODON
                              description: Asset type
                            content:
                              type: string
                              description: Asset content
                            status:
                              type: string
                              enum:
                                - UNKNOWN
                                - ALLOWED
                                - BLOCKED
                              description: Asset status
                            hops:
                              type: integer
                              description: >-
                                Links between this asset and the root on the
                                path it was first reached by. 0 for the root
                                itself.
                            expanded:
                              type: boolean
                              description: >-
                                Whether this asset's own links on this side were
                                read. False past `depth`, past the per-hop cap,
                                or when `stop` is set.
                            hasMoreLinks:
                              type: boolean
                              description: >-
                                Whether this asset has more links on this side
                                than `limit` allowed.
                            truncatedLinkTypes:
                              type: array
                              items:
                                type: string
                                enum:
                                  - PUBLISHED
                                  - LINKS_TO
                                  - REDIRECTS_TO
                                  - CLAIMS
                                  - REPLIES_TO
                                  - REPOSTS
                                  - MENTIONS
                                  - DEPENDS_ON
                                  - MEMBER_OF
                                  - LOADS
                                  - SUBMITS_TO
                                  - USES_WALLET
                              description: >-
                                The link types this asset has more of than
                                `limit` allowed. Ask again with this asset as
                                the root to read them.
                            stop:
                              type: string
                              nullable: true
                              enum:
                                - parking
                                - furniture
                                - allowed
                                - allowed-site
                                - null
                              description: >-
                                Why this asset's links were not followed
                                although within `depth`, or null. `parking`: a
                                parking or for-sale page. `furniture`: a
                                platform page every site links to. `allowed`: an
                                asset reviewed and allowed. `allowed-site`: a
                                subdomain of an allowed site. Each of these
                                joins unrelated assets, so the walk shows the
                                asset and stops there.
                          required:
                            - id
                            - type
                            - content
                            - status
                            - hops
                            - expanded
                            - hasMoreLinks
                            - truncatedLinkTypes
                            - stop
                        description: >-
                          The root first (`hops` 0), then each asset in the
                          order it was reached. An asset reached by two paths
                          appears once.
                      links:
                        type: array
                        items:
                          type: object
                          properties:
                            fromAssetId:
                              type: number
                              description: The asset the link starts from
                            type:
                              type: string
                              enum:
                                - PUBLISHED
                                - LINKS_TO
                                - REDIRECTS_TO
                                - CLAIMS
                                - REPLIES_TO
                                - REPOSTS
                                - MENTIONS
                                - DEPENDS_ON
                                - MEMBER_OF
                                - LOADS
                                - SUBMITS_TO
                                - USES_WALLET
                              description: >-
                                How the two assets are linked, read as from →
                                type → to: `PUBLISHED` (an account published a
                                post, ad, video or app), `LINKS_TO`,
                                `REDIRECTS_TO`, `CLAIMS` (names it as its own
                                website, account or contact), `REPLIES_TO`,
                                `REPOSTS`, `MENTIONS`, `DEPENDS_ON`,
                                `MEMBER_OF`, `LOADS`, `SUBMITS_TO`,
                                `USES_WALLET`.
                            toAssetId:
                              type: number
                              description: The asset the link points to
                            firstSeenAt:
                              type: string
                              description: When the link was first observed
                            lastSeenAt:
                              type: string
                              description: When the link was last observed
                          required:
                            - fromAssetId
                            - type
                            - toAssetId
                            - firstSeenAt
                            - lastSeenAt
                        description: The links between the assets listed, grouped by type.
                    required:
                      - assets
                      - links
                    description: >-
                      What leads to the asset: the assets that published, linked
                      to, redirected to or claimed it, and what led to those.
                  downstream:
                    type: object
                    properties:
                      assets:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: number
                              description: Asset ID
                            type:
                              type: string
                              enum:
                                - URL
                                - PAGE
                                - ADDRESS
                                - DISCORD
                                - LINKEDIN
                                - TWITTER
                                - FACEBOOK
                                - YOUTUBE
                                - REDDIT
                                - TELEGRAM
                                - GOOGLE_APP_STORE
                                - APPLE_APP_STORE
                                - AMAZON_APP_STORE
                                - MICROSOFT_APP_STORE
                                - TIKTOK
                                - INSTAGRAM
                                - THREADS
                                - MEDIUM
                                - CHROME_WEB_STORE
                                - MOZILLA_ADDONS
                                - OPERA_ADDONS
                                - EMAIL
                                - PATREON
                                - OPENSEA
                                - FARCASTER
                                - IPFS
                                - GOOGLE_FORM
                                - WHATSAPP
                                - DISCORD_USER
                                - QUORA
                                - GITHUB
                                - TEACHABLE
                                - SUBSTACK
                                - DEBANK
                                - TAWK_TO
                                - JOTFORM
                                - PRIMAL
                                - BLUESKY
                                - SNAPCHAT
                                - DESO
                                - PINTEREST
                                - FLICKR
                                - GALXE
                                - VELOG
                                - NPM
                                - PYPI
                                - HEX
                                - DOCKER_HUB
                                - VOCAL_MEDIA
                                - TECKFINE
                                - TENDERLY
                                - HACKMD
                                - ETSY
                                - ZAZZLE
                                - BASENAME
                                - BILIBILI_TV
                                - VIMEO
                                - DAILYMOTION
                                - PHONE_NUMBER
                                - SLACK
                                - CALENDLY
                                - NGROK
                                - RARIBLE
                                - RUST_PACKAGE
                                - FLATHUB
                                - VIDLII
                                - VEVIOZ
                                - ISSUU
                                - SOUNDCLOUD
                                - ZAPPER
                                - REDNOTE
                                - SAMSUNG_APP_STORE
                                - HUAWEI_APP_STORE
                                - XIAOMI_APP_STORE
                                - TENCENT_APP_STORE
                                - OPPO_APP_STORE
                                - VIVO_APP_STORE
                                - F_DROID
                                - GOOGLE_AD
                                - BING_AD
                                - TWITCH
                                - BEHANCE
                                - ZORA
                                - META_AD
                                - SIGNAL
                                - DEVIANTART
                                - BANDCAMP
                                - ARCHIVE_ORG
                                - FIVE_HUNDRED_PX
                                - LUMA
                                - SMARTMONEYMATCH
                                - APK_GOLD
                                - GLASSDOOR
                                - PUMP_FUN
                                - TUMBLR
                                - MASTODON
                              description: Asset type
                            content:
                              type: string
                              description: Asset content
                            status:
                              type: string
                              enum:
                                - UNKNOWN
                                - ALLOWED
                                - BLOCKED
                              description: Asset status
                            hops:
                              type: integer
                              description: >-
                                Links between this asset and the root on the
                                path it was first reached by. 0 for the root
                                itself.
                            expanded:
                              type: boolean
                              description: >-
                                Whether this asset's own links on this side were
                                read. False past `depth`, past the per-hop cap,
                                or when `stop` is set.
                            hasMoreLinks:
                              type: boolean
                              description: >-
                                Whether this asset has more links on this side
                                than `limit` allowed.
                            truncatedLinkTypes:
                              type: array
                              items:
                                type: string
                                enum:
                                  - PUBLISHED
                                  - LINKS_TO
                                  - REDIRECTS_TO
                                  - CLAIMS
                                  - REPLIES_TO
                                  - REPOSTS
                                  - MENTIONS
                                  - DEPENDS_ON
                                  - MEMBER_OF
                                  - LOADS
                                  - SUBMITS_TO
                                  - USES_WALLET
                              description: >-
                                The link types this asset has more of than
                                `limit` allowed. Ask again with this asset as
                                the root to read them.
                            stop:
                              type: string
                              nullable: true
                              enum:
                                - parking
                                - furniture
                                - allowed
                                - allowed-site
                                - null
                              description: >-
                                Why this asset's links were not followed
                                although within `depth`, or null. `parking`: a
                                parking or for-sale page. `furniture`: a
                                platform page every site links to. `allowed`: an
                                asset reviewed and allowed. `allowed-site`: a
                                subdomain of an allowed site. Each of these
                                joins unrelated assets, so the walk shows the
                                asset and stops there.
                          required:
                            - id
                            - type
                            - content
                            - status
                            - hops
                            - expanded
                            - hasMoreLinks
                            - truncatedLinkTypes
                            - stop
                        description: >-
                          The root first (`hops` 0), then each asset in the
                          order it was reached. An asset reached by two paths
                          appears once.
                      links:
                        type: array
                        items:
                          type: object
                          properties:
                            fromAssetId:
                              type: number
                              description: The asset the link starts from
                            type:
                              type: string
                              enum:
                                - PUBLISHED
                                - LINKS_TO
                                - REDIRECTS_TO
                                - CLAIMS
                                - REPLIES_TO
                                - REPOSTS
                                - MENTIONS
                                - DEPENDS_ON
                                - MEMBER_OF
                                - LOADS
                                - SUBMITS_TO
                                - USES_WALLET
                              description: >-
                                How the two assets are linked, read as from →
                                type → to: `PUBLISHED` (an account published a
                                post, ad, video or app), `LINKS_TO`,
                                `REDIRECTS_TO`, `CLAIMS` (names it as its own
                                website, account or contact), `REPLIES_TO`,
                                `REPOSTS`, `MENTIONS`, `DEPENDS_ON`,
                                `MEMBER_OF`, `LOADS`, `SUBMITS_TO`,
                                `USES_WALLET`.
                            toAssetId:
                              type: number
                              description: The asset the link points to
                            firstSeenAt:
                              type: string
                              description: When the link was first observed
                            lastSeenAt:
                              type: string
                              description: When the link was last observed
                          required:
                            - fromAssetId
                            - type
                            - toAssetId
                            - firstSeenAt
                            - lastSeenAt
                        description: The links between the assets listed, grouped by type.
                    required:
                      - assets
                      - links
                    description: >-
                      Where the asset leads: what it links to, redirects to or
                      claims, and where those lead.
                required:
                  - asset
                  - upstream
                  - downstream
                description: Asset connections response body
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
      security:
        - ApiKey: []
components:
  schemas:
    error.BAD_REQUEST:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Invalid input data
        code:
          type: string
          description: The error code
          example: BAD_REQUEST
        issues:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
          description: An array of issues that were responsible for the error
          example: []
      required:
        - message
        - code
      title: Invalid input data error (400)
      description: The error information
      example:
        code: BAD_REQUEST
        message: Invalid input data
        issues: []
    error.UNAUTHORIZED:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Authorization not provided
        code:
          type: string
          description: The error code
          example: UNAUTHORIZED
        issues:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
          description: An array of issues that were responsible for the error
          example: []
      required:
        - message
        - code
      title: Authorization not provided error (401)
      description: The error information
      example:
        code: UNAUTHORIZED
        message: Authorization not provided
        issues: []
    error.FORBIDDEN:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Insufficient access
        code:
          type: string
          description: The error code
          example: FORBIDDEN
        issues:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
          description: An array of issues that were responsible for the error
          example: []
      required:
        - message
        - code
      title: Insufficient access error (403)
      description: The error information
      example:
        code: FORBIDDEN
        message: Insufficient access
        issues: []
    error.INTERNAL_SERVER_ERROR:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Internal server error
        code:
          type: string
          description: The error code
          example: INTERNAL_SERVER_ERROR
        issues:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
          description: An array of issues that were responsible for the error
          example: []
      required:
        - message
        - code
      title: Internal server error error (500)
      description: The error information
      example:
        code: INTERNAL_SERVER_ERROR
        message: Internal server error
        issues: []
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-KEY
      description: >-
        Your API key. This is required by most endpoints to access our API
        programatically. Reach out to us at
        [support@chainpatrol.io](mailto:support@chainpatrol.io?subject=Re:%20API%20Key%20for%20SDK&body=Company:%20%0AName:%20%0APurpose:%20)
        to get an API key for your use.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.