Leaf Agriculture Leaf Connect API
The Leaf Connect API from Leaf Agriculture — 8 operation(s) for leaf connect.
The Leaf Connect API from Leaf Agriculture — 8 operation(s) for leaf connect.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/leaf-agriculture:leaf-agriculture-leaf-connect-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Leaf Connect API
description: Food and Agriculture developers use Leaf's API to access clean, standardized, and aggregated Farm data from all major sources.
version: 1.0.0
servers:
- url: https://api.withleaf.io
security:
- bearerAuth: []
tags:
- name: Leaf Connect
paths:
/services/usermanagement/api/api-owners/sharing-relation/{sharingRelationRole}:
get:
operationId: getSharingRelation
summary: Get sharing relation
tags:
- Leaf Connect
security:
- bearerAuth: []
parameters:
- name: sharingRelationRole
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
/services/usermanagement/api/api-owners/sharing-relation/{sharingRelationRole}/{targetApiOwner}/status:
get:
operationId: getSharingRelationStatus
summary: Get sharing relation status
tags:
- Leaf Connect
security:
- bearerAuth: []
parameters:
- name: sharingRelationRole
in: path
required: true
schema:
type: string
- name: targetApiOwner
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
/services/usermanagement/api/api-owners/sharing-relation/receiver:
post:
operationId: createSharingRelation
summary: Create sharing relation
tags:
- Leaf Connect
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
receiverApiOwner:
type: string
responses:
'201':
description: Created
/services/usermanagement/api/api-owners/sharing-relation/{sharingRelationRole}/{targetApiOwner}:
patch:
operationId: updateSharingRelationStatus
summary: Update sharing relation status
tags:
- Leaf Connect
security:
- bearerAuth: []
parameters:
- name: sharingRelationRole
in: path
required: true
schema:
type: string
- name: targetApiOwner
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
status:
type: string
responses:
'200':
description: OK
? /services/usermanagement/api/api-owners/sharing-relation/{sharingRelationRole}/{targetApiOwner}/users-permissions/{leafUserId}
: get:
operationId: getUserPermissions
summary: Get user permissions
tags:
- Leaf Connect
security:
- bearerAuth: []
parameters:
- name: sharingRelationRole
in: path
required: true
schema:
type: string
- name: targetApiOwner
in: path
required: true
schema:
type: string
- name: leafUserId
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
delete:
operationId: deleteUserPermissions
summary: Delete user permissions
tags:
- Leaf Connect
security:
- bearerAuth: []
parameters:
- name: sharingRelationRole
in: path
required: true
schema:
type: string
- name: targetApiOwner
in: path
required: true
schema:
type: string
- name: leafUserId
in: path
required: true
schema:
type: string
responses:
'204':
description: No Content
/services/usermanagement/api/api-owners/sharing-relation/receiver/{receiverApiOwner}/users-permissions/{leafUserId}:
post:
operationId: createUserPermissions
summary: Create user permissions
tags:
- Leaf Connect
security:
- bearerAuth: []
parameters:
- name: receiverApiOwner
in: path
required: true
schema:
type: string
- name: leafUserId
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
permissions:
type: object
properties:
FIELDS:
type: object
OPERATIONS:
type: object
responses:
'201':
description: Created
? /services/usermanagement/api/api-owners/sharing-relation/receiver/{receiverApiOwner}/users-permissions/{leafUserId}/{sharingRelationResource}
: patch:
operationId: updateUserPermissions
summary: Update user permissions
tags:
- Leaf Connect
security:
- bearerAuth: []
parameters:
- name: receiverApiOwner
in: path
required: true
schema:
type: string
- name: leafUserId
in: path
required: true
schema:
type: string
- name: sharingRelationResource
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
actions:
type: array
items:
type: string
types:
type: array
items:
type: string
responses:
'200':
description: OK
/services/usermanagement/api/api-owners/sharing-relation/{sharingRelationRole}/{targetApiOwner}/invalidate-tokens:
post:
operationId: invalidateTokens
summary: Invalidate tokens
tags:
- Leaf Connect
security:
- bearerAuth: []
parameters:
- name: sharingRelationRole
in: path
required: true
schema:
type: string
- name: targetApiOwner
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
x-provenance:
method: harvested
publisher: Leaf Agriculture
source: https://docs.withleaf.io/openapi.yaml
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)