---
title: "Import an agent inventory feed"
url: "https://real-estate-agency.apim.eu/apis/agent-deployments/versions/3a3ada6b-888e-498a-bfb3-a134ac91f753/operations/importAgentInventoryFeed"
---

> Full API specification: https://real-estate-agency.apim.eu/apis/agent-deployments/versions/3a3ada6b-888e-498a-bfb3-a134ac91f753.md

# Import an agent inventory feed

`POST` `/import/feed`

Operation ID: `importAgentInventoryFeed`

Accepts a JSON or CSV agent-inventory feed and creates or updates the agent deployments it contains. The import runs asynchronously.

## Request body (required)

Content types: `multipart/form-data`

## Responses

- `202` - Import accepted

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Agent Deployments
  version: 1.0.0
servers:
  - url: https://api.nexora.example/v1
    description: Production
  - url: https://sandbox.api.nexora.example/v1
    description: Sandbox
paths:
  /import/feed:
    post:
      tags:
        - Import
      summary: Import an agent inventory feed
      description: |
        Accepts a JSON or CSV agent-inventory feed and creates or updates the
        agent deployments it contains. The import runs asynchronously.
      operationId: importAgentInventoryFeed
      security:
        - apiKey: []
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - file
              properties:
                file:
                  type: string
                  format: binary
                mode:
                  type: string
                  enum:
                    - merge
                    - replace
                  default: merge
                  description: "`replace` retires agents that aren't in the file."
      responses:
        "202":
          description: Import accepted
          content:
            application/json:
              schema:
                type: object
                properties:
                  import_id:
                    type: string
                    example: imp_2f71
                  status:
                    type: string
                    enum:
                      - in_progress
                      - done
                      - failed
                  agents_detected:
                    type: integer
                    example: 47
security:
  - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: |
        Every call carries an API key in the `apikey` header. You generate the
        key in the Nexora AI portal under "My Apps"; it's shown exactly once.

        Each key has the scopes it's allowed to use attached to it. If one is
        missing, the API responds with `403` and `code: "scope_missing"`; the
        missing scope is in `details[].field`.
```
