Leaf Agriculture · Capability

Leaf Agriculture Leaf API — API Reference > Magic Link > File Upload

Leaf Agriculture Leaf API — API Reference > Magic Link > File Upload. 4 operations. Lead operation: Leaf Agriculture Get All File Upload Magic Link. Self-contained Naftiko capability covering one Leaf Agriculture business surface.

Run with Naftiko Leaf AgricultureAPI Reference > Magic Link > File Upload

What You Can Do

GET
Get — Leaf Agriculture Get All File Upload Magic Link
/v1/services/widgets/api/magic-link/file-upload
GET
Get — Leaf Agriculture Get a File Upload Magic Link
/v1/services/widgets/api/magic-link/file-upload/{magic-link-id}
DELETE
Delete — Leaf Agriculture Delete a File Upload Magic Link
/v1/services/widgets/api/magic-link/file-upload/{magic-link-id}
POST
Post — Leaf Agriculture Create a File Upload Magic Link
/v1/services/widgets/api/magic-link/users/{leaf-user-id}/file-upload

MCP Tools

leaf-agriculture-get-all-file

Leaf Agriculture Get All File Upload Magic Link

read-only idempotent
leaf-agriculture-get-file-upload

Leaf Agriculture Get a File Upload Magic Link

read-only idempotent
leaf-agriculture-delete-file-upload

Leaf Agriculture Delete a File Upload Magic Link

idempotent
leaf-agriculture-create-file-upload

Leaf Agriculture Create a File Upload Magic Link

Capability Spec

leaf-agriculture-api-reference-magic-link-file-upload.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Leaf Agriculture Leaf API — API Reference > Magic Link > File Upload
  description: 'Leaf Agriculture Leaf API — API Reference > Magic Link > File Upload. 4 operations. Lead operation: Leaf Agriculture
    Get All File Upload Magic Link. Self-contained Naftiko capability covering one Leaf Agriculture business surface.'
  tags:
  - Leaf Agriculture
  - API Reference > Magic Link > File Upload
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LEAF_AGRICULTURE_API_KEY: LEAF_AGRICULTURE_API_KEY
capability:
  consumes:
  - type: http
    namespace: leaf-agriculture-api-reference-magic-link-file-upload
    baseUri: ''
    description: Leaf Agriculture Leaf API — API Reference > Magic Link > File Upload business capability. Self-contained,
      no shared references.
    resources:
    - name: services-widgets-api-magic-link-file-upload
      path: /services/widgets/api/magic-link/file-upload
      operations:
      - name: get
        method: GET
        description: Leaf Agriculture Get All File Upload Magic Link
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
    - name: services-widgets-api-magic-link-file-upload-magic_link_id
      path: /services/widgets/api/magic-link/file-upload/{magic_link_id}
      operations:
      - name: get
        method: GET
        description: Leaf Agriculture Get a File Upload Magic Link
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: magic_link_id
          in: path
          type: string
          required: true
      - name: delete
        method: DELETE
        description: Leaf Agriculture Delete a File Upload Magic Link
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: magic_link_id
          in: path
          type: string
          required: true
    - name: services-widgets-api-magic-link-users-leaf_user_id-file-upload
      path: /services/widgets/api/magic-link/users/{leaf_user_id}/file-upload
      operations:
      - name: post
        method: POST
        description: Leaf Agriculture Create a File Upload Magic Link
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: leaf_user_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: leaf-agriculture-api-reference-magic-link-file-upload-rest
    port: 8080
    description: REST adapter for Leaf Agriculture Leaf API — API Reference > Magic Link > File Upload. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/services/widgets/api/magic-link/file-upload
      name: services-widgets-api-magic-link-file-upload
      description: REST surface for services-widgets-api-magic-link-file-upload.
      operations:
      - method: GET
        name: get
        description: Leaf Agriculture Get All File Upload Magic Link
        call: leaf-agriculture-api-reference-magic-link-file-upload.get
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/services/widgets/api/magic-link/file-upload/{magic-link-id}
      name: services-widgets-api-magic-link-file-upload-magic-link-id
      description: REST surface for services-widgets-api-magic-link-file-upload-magic_link_id.
      operations:
      - method: GET
        name: get
        description: Leaf Agriculture Get a File Upload Magic Link
        call: leaf-agriculture-api-reference-magic-link-file-upload.get
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          magic_link_id: rest.magic_link_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Leaf Agriculture Delete a File Upload Magic Link
        call: leaf-agriculture-api-reference-magic-link-file-upload.delete
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          magic_link_id: rest.magic_link_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/services/widgets/api/magic-link/users/{leaf-user-id}/file-upload
      name: services-widgets-api-magic-link-users-leaf-user-id-file-upload
      description: REST surface for services-widgets-api-magic-link-users-leaf_user_id-file-upload.
      operations:
      - method: POST
        name: post
        description: Leaf Agriculture Create a File Upload Magic Link
        call: leaf-agriculture-api-reference-magic-link-file-upload.post
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          leaf_user_id: rest.leaf_user_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: leaf-agriculture-api-reference-magic-link-file-upload-mcp
    port: 9090
    transport: http
    description: MCP adapter for Leaf Agriculture Leaf API — API Reference > Magic Link > File Upload. One tool per consumed
      operation, routed inline through this capability's consumes block.
    tools:
    - name: leaf-agriculture-get-all-file
      description: Leaf Agriculture Get All File Upload Magic Link
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-magic-link-file-upload.get
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-get-file-upload
      description: Leaf Agriculture Get a File Upload Magic Link
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-magic-link-file-upload.get
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        magic_link_id: tools.magic_link_id
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-delete-file-upload
      description: Leaf Agriculture Delete a File Upload Magic Link
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: leaf-agriculture-api-reference-magic-link-file-upload.delete
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        magic_link_id: tools.magic_link_id
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-create-file-upload
      description: Leaf Agriculture Create a File Upload Magic Link
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: leaf-agriculture-api-reference-magic-link-file-upload.post
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        leaf_user_id: tools.leaf_user_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.