Skip to main content
POST
/
api
/
v1
/
media
/
integrations
/
freepik
/
import
Bulk Import Freepik Assets
curl --request POST \
  --url http://localhost:8000/api/v1/media/integrations/freepik/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "asset_ids": [
    "<string>"
  ],
  "tags": [
    "<string>"
  ]
}
'
{
  "imported": [
    {
      "id": 123,
      "filename": "<string>",
      "url": "<string>",
      "file_size": 123,
      "mime_type": "<string>",
      "source_type": "upload",
      "date_added": "2023-11-07T05:31:56Z",
      "date_updated": "2023-11-07T05:31:56Z",
      "width": 123,
      "height": 123,
      "external_id": "<string>",
      "external_metadata": {},
      "tags": [
        "<string>"
      ],
      "alt_text": "<string>"
    }
  ],
  "skipped": [
    {
      "asset_id": "<string>",
      "reason": "<string>"
    }
  ],
  "failed": [
    {
      "asset_id": "<string>",
      "error": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

company_id
integer
required

Company ID

Body

application/json
asset_ids
string[]
required

Freepik asset IDs to import

Minimum array length: 1
tags
string[]

Optional tags for the imported assets

Response

Successful Response

imported
MediaUploadResponseSchema · object[]
required
skipped
ImportSkippedSchema · object[]
required
failed
ImportFailedSchema · object[]
required