# Attribution by video URL

Send the URL of a generated or edited video. Bria computes its embeddings and attributes it.
Set `model` to the Bria video model that produced the video.

Endpoint: POST /v2/video/attribution/by_video
Version: 1.2.0
Security: api_token

## Request fields (application/json):

  - `video` (string, required)
    Publicly accessible URL of the video.
    Example: https://bria-test-images.s3.us-east-1.amazonaws.com/videos/eraser/video1_video.mp4

  - `model` (string, required)
    The Bria video model that produced the video, as `model_name:version`.
    Enum: "video_generation:1", "video_rmbg:1", "video_eraser:1", "video_mask:1", "video_increase_res:1"

  - `agent` (string)
    Optional. A name for the application, integration or end customer that produced the asset. Stored with the attribution record.
    Example: my-app

  - `sync` (boolean)
    Specifies the response mode. Optional.
- When `false` (default), the API returns `202` with a `request_id` and `status_url` right away.
- When `true`, the API returns `200` with the outcome once the attribution request is queued.
    Example: false

  - `webhook_url` (string)
    Optional URL for receiving the result via webhook when the async job completes. See [webhooks](/getting-started/async-requests#webhooks).
    Example: https://example.com/webhooks/bria

## Response 200 fields (application/json):

  - `result` (object, required)

  - `result.content` (string, required)
    Example: Attribution triggered successfully

  - `request_id` (string, required)

## Response 202 fields (application/json):

  - `request_id` (string, required)

  - `status_url` (string, required)

## Response 401 fields (application/json):

  - `error` (object, required)

  - `error.code` (integer, required)
    Example: 123

  - `error.message` (string, required)

  - `error.details` (string, required)

  - `request_id` (string, required)

## Response 422 fields (application/json):

  - `error` (object, required)

  - `error.code` (integer, required)
    Example: 123

  - `error.message` (string, required)

  - `error.details` (string, required)

  - `request_id` (string, required)

## Response 429 fields (application/json):

  - `error` (object, required)

  - `error.code` (integer, required)
    Example: 123

  - `error.message` (string, required)

  - `error.details` (string, required)

  - `request_id` (string, required)

## Response 500 fields (application/json):

  - `error` (object, required)

  - `error.code` (integer, required)
    Example: 123

  - `error.message` (string, required)

  - `error.details` (string, required)

  - `request_id` (string, required)

