AdnovaDocs
Creative Hub

Get an import batch

Progress for a batch created by Import files from a link. source is required and must match the source the batch was created with — a batch id is only looked up in that integration's records. A batch is only visible from the workspace it imports into; any other workspace gets 404.

GET
/file-imports-from-links/{batchId}

Authentication

authentication
api-key<token>

Create an API key from the Adnova dashboard (Account integrations). Pass the key value in the api-key request header on every call.

In: header

Path Parameters

batchId*string

Import batch id returned when the batch was created.

Length1 <= length

Query Parameters

source*string

The integration the batch was created with. Must match the source used on create.

Value in"google-drive" | "dropbox" | "frameio" | "air" | "shade"

Header Parameters

x-workspace-id*string

Workspace the request operates in. Get it from List workspaces.

Length1 <= length
x-org-id*string

Organization context (required on every endpoint).

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.adnova.ai/creative-hub/v1/file-imports-from-links/01J8ZH2M4N5P6Q7R8S9T0V1W2X?source=google-drive" \  -H "x-workspace-id: 01J8ZQ9X2K3M4N5P6R7S8T9V0W" \  -H "x-org-id: 01J8ZQ7B3C4D5F6G7H8K9M0N1P"
{
  "batch": {
    "_id": "01J8ZH2M4N5P6Q7R8S9T0V1W2X",
    "link": [
      "https://drive.google.com/drive/folders/1AbCdEfGhIjKlMnOpQrStUvWxYz"
    ],
    "orgId": "01J8ZQ7B3C4D5F6G7H8K9M0N1P",
    "status": "processing",
    "error": null,
    "metadata": {
      "workspaceId": "01J8ZQ9X2K3M4N5P6R7S8T9V0W",
      "boardId": "01J8ZB1C2D3E4F5G6H7J8K9M0N"
    },
    "fileDetails": [
      {
        "_id": "01J8ZJ3N5P6Q7R8S9T0V1W2X3Y",
        "name": "hero-cut-v2.mp4",
        "mime": "video/mp4",
        "size": 1846720,
        "progress": 100,
        "resolution": "1080x1920",
        "status": "completed",
        "mediaKey": "media/01J8ZQ9X.../hero-cut-v2.mp4",
        "adnovaFileId": "01J8ZF9K8M7N6P5R4S3T2V1W0X",
        "error": null
      }
    ]
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}