Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
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. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Etherna Pinning API
version: 7.3.0
description: 'Operations tagged Pinning across 2 of this provider''s published API definitions: etherna-swarm-openapi.yml, etherna-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://{apiRoot}:{port}/v1
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
- url: http://{apiRoot}:{port}
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
tags:
- name: Pinning
paths:
/pins/{reference}:
parameters:
- in: path
name: reference
schema:
$ref: SwarmCommon.yaml#/components/schemas/SwarmOnlyReference
required: true
description: Swarm reference of the root hash
post:
summary: Pin the root hash with the given reference
tags:
- Pinning
responses:
'200':
description: Pin already exists, so no operation
content:
application/json:
schema:
$ref: SwarmCommon.yaml#/components/schemas/Response
'201':
description: New pin with root reference was created
content:
application/json:
schema:
$ref: SwarmCommon.yaml#/components/schemas/Response
'400':
$ref: SwarmCommon.yaml#/components/responses/400
'404':
$ref: SwarmCommon.yaml#/components/responses/404
'500':
$ref: SwarmCommon.yaml#/components/responses/500
default:
description: Default response
operationId: postPinsByReference
x-operation-id-source: derived
delete:
summary: Unpin the root hash with the given reference
tags:
- Pinning
responses:
'200':
description: Unpinning root hash with reference
content:
application/json:
schema:
$ref: SwarmCommon.yaml#/components/schemas/Response
'400':
$ref: SwarmCommon.yaml#/components/responses/400
'500':
$ref: SwarmCommon.yaml#/components/responses/500
default:
description: Default response
operationId: deletePinsByReference
x-operation-id-source: derived
get:
summary: Get pinning status of the root hash with the given reference
tags:
- Pinning
responses:
'200':
description: Reference of the pinned root hash
content:
application/json:
schema:
$ref: SwarmCommon.yaml#/components/schemas/SwarmOnlyReferenceResponse
'400':
$ref: SwarmCommon.yaml#/components/responses/400
'404':
$ref: SwarmCommon.yaml#/components/responses/404
'500':
$ref: SwarmCommon.yaml#/components/responses/500
default:
description: Default response
operationId: getPinsByReference
x-operation-id-source: derived
servers:
- url: http://{apiRoot}:{port}/v1
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
- url: http://{apiRoot}:{port}
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
/pins:
get:
summary: Get the list of pinned root hash references
tags:
- Pinning
responses:
'200':
description: List of pinned root hash references
content:
application/json:
schema:
$ref: SwarmCommon.yaml#/components/schemas/SwarmOnlyReferencesList
'500':
$ref: SwarmCommon.yaml#/components/responses/500
default:
description: Default response
operationId: getPins
x-operation-id-source: derived
servers:
- url: http://{apiRoot}:{port}/v1
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
- url: http://{apiRoot}:{port}
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
/pins/check:
get:
summary: Validate pinned chunks integerity
tags:
- Pinning
parameters:
- in: query
name: ref
schema:
$ref: SwarmCommon.yaml#/components/schemas/SwarmOnlyReference
required: false
description: The number of items to skip before starting to collect the result set.
responses:
'200':
description: List of checked root hash references
content:
application/json:
schema:
$ref: SwarmCommon.yaml#/components/schemas/PinCheckResponse
'500':
$ref: SwarmCommon.yaml#/components/responses/500
default:
description: Default response
operationId: getPinsCheck
x-operation-id-source: derived
servers:
- url: http://{apiRoot}:{port}/v1
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
- url: http://{apiRoot}:{port}
variables:
apiRoot:
default: localhost
description: Base address of the local bee node main API
port:
default: '1633'
description: Service port provided in bee node config
externalDocs:
description: Browse the documentation @ the Swarm Docs
url: https://docs.ethswarm.org
x-refined-from:
- etherna-swarm-openapi.yml
- etherna-openapi.yaml