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

# Import by URL

> <Badge color="green">Standalone</Badge>

Importing protocols requires a Standalone instance. A Bundled instance is locked to serving its Specter instance's backends.

Fetches a protocol document from a URL, validates, and stores it.



## OpenAPI

````yaml /products/link/openapi.yaml post /api/admin/protocols/import
openapi: 3.0.0
info:
  description: >-
    Admin API for managing Link protocols and backends (Bundled and Standalone
    editions).
  title: Link API
  version: '1.0'
servers:
  - url: https://{instance}.{env}.on-hellgate.cloud
    description: Managed instance of Link
    variables:
      instance:
        default: my-instance
        description: Your unique instance slug, provided during onboarding.
      env:
        default: eu1
        description: Deployment environment (currently eu1).
security: []
tags: []
paths:
  /api/admin/protocols/import:
    post:
      tags:
        - Protocols
      summary: Import by URL
      description: >-
        <Badge color="green">Standalone</Badge>


        Importing protocols requires a Standalone instance. A Bundled instance
        is locked to serving its Specter instance's backends.


        Fetches a protocol document from a URL, validates, and stores it.
      operationId: protocols_import
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportRequest'
        description: Import request
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProtocolSummary'
          description: Protocol imported
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Already imported
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrors'
          description: Validation error
      callbacks: {}
      security:
        - bearerAuth: []
components:
  schemas:
    ImportRequest:
      description: Request to import a protocol by URL.
      properties:
        url:
          description: URL to fetch the protocol document from.
          example: https://developer.hellgate.io/protocols/specter/v1
          type: string
      required:
        - url
      title: ImportRequest
      type: object
    ProtocolSummary:
      description: Summary of an imported or created protocol.
      properties:
        id:
          format: uuid
          type: string
        inserted_at:
          format: date-time
          type: string
        local_id:
          example: specter-v1
          type: string
        name:
          example: Specter Risk Assessment
          type: string
        url:
          example: https://developer.hellgate.io/protocols/specter/v1
          type: string
        version:
          example: '1'
          type: string
      required:
        - id
        - local_id
        - url
        - name
        - version
        - inserted_at
      title: ProtocolSummary
      type: object
    Error:
      description: Generic error response.
      properties:
        classifier:
          example: NOT_FOUND
          type: string
        code:
          example: 404
          type: integer
        message:
          example: The requested resource does not exist
          type: string
      required:
        - classifier
        - code
        - message
      title: Error
      type: object
    ValidationErrors:
      description: Response shape for request validation failures.
      properties:
        classifier:
          example: VALIDATION_ERROR
          type: string
        code:
          example: 422
          type: integer
        validation_errors:
          items:
            properties:
              message:
                example: url is required
                type: string
              path:
                example: url
                nullable: true
                type: string
            type: object
          type: array
      required:
        - classifier
        - code
        - validation_errors
      title: ValidationErrors
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````