# Pinata API Documentation

This is the complete API documentation for connecting to the Pinata API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **Pinata connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/pinata/actions/{actionSlug}/run
```

## Pinata actions

- PUT `add-file-to-group` Add File To Group
- POST `add-signature-to-cid` Add Signature to CID
- PUT `add-swap` Add Swap
- DELETE `cancel-pin-request` Cancel Pin Request
- POST `create-gateway` Create Gateway
- POST `create-group` Create Group
- DELETE `delete-file-by-id` Delete File by ID
- DELETE `delete-gateway` Delete Gateway
- DELETE `delete-group` Delete Group
- GET `get-data-usage` Get Data Usage
- GET `get-file-by-id` Get File by ID
- GET `get-gateway-details` Get Gateway Details
- GET `get-gateway-domain-availability` Get Gateway Domain Availability
- GET `get-group` Get Group
- GET `get-signature-for-a-cid` Get Signature for a CID
- GET `get-swap-history` Get Swap History
- GET `get-time-interval-gateway-analytics` Get Time Interval Gateway Analytics
- GET `get-top-gateway-analytics` Get Top Gateway Analytics
- GET `list-files` List Files
- GET `list-gateways` List Gateways
- GET `list-groups` List Groups
- POST `pin-by-cid` Pin by CID
- POST `pin-json` Pin JSON
- DELETE `remove-file-from-group` Remove File From Group
- DELETE `remove-signature-from-cid` Remove Signature from CID
- DELETE `remove-swap` Remove Swap
- GET `search-pin-requests` Search Pin Requests
- GET `test-authentication` Test Authentication
- PUT `update-file` Update File
- PUT `update-group` Update Group
