Flag
Login Signup

: https://api.pinarkive.com

: 2.0

GET /api/v2/status

: GET

: https://api.pinarkive.com/api/v2/status

: No

GET /api/v2/docs

: GET

: https://api.pinarkive.com/api/v2/docs

: No

GET /api/v2/plans

: GET

: https://api.pinarkive.com/api/v2/plans

: No

GET /api/v2/file/{hash}

: GET

: https://api.pinarkive.com/api/v2/file/{hash}

: No

Authorization: Bearer <jwt-token>

curl -X POST https://api.pinarkive.com/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "user@example.com", "password": "password123"}'
curl -H "Authorization: Bearer <jwt-token>" \
https://api.pinarkive.com/me

X-API-Key: <api-key>
curl -H "X-API-Key: your-api-key-here" \
https://api.pinarkive.com/me

: POST

: https://api.pinarkive.com/api/v2/user/upload

: multipart/form-data

: file (multipart/form-data)

:

{
  "cid": "",
  "size": 
}

:

curl -X POST https://api.pinarkive.com/api/v2/user/upload \
-H "Authorization: Bearer <jwt-token>" \
-F "file=@/path/to/your/file.jpg"

: POST

: https://api.pinarkive.com/api/v2/user/upload/directory

: application/json

: dirPath

{
  "dirPath": "/path/to/directory"
}

:

curl -X POST https://api.pinarkive.com/api/v2/user/upload/directory \
-H "Authorization: Bearer <jwt-token>" \
-H "Content-Type: application/json" \
-d '{"dirPath":"/path/to/directory"}'

: POST

: https://api.pinarkive.com/api/v2/user/files/pin/<cid>

:

{
  "cid": "",
  "status": "pinned"
}

:

curl -X POST https://api.pinarkive.com/api/v2/user/files/pin/Qm... \
-H "X-API-Key: your-api-key"

: DELETE

: https://api.pinarkive.com/api/v2/user/files/<id>

:

{
  "success": true,
  "cid": ""
}

:

curl -X DELETE https://api.pinarkive.com/api/v2/user/files/Qm... \
-H "Authorization: Bearer <jwt-token>"

: GET

: https://api.pinarkive.com/api/v2/user/profile

{
  /* user profile object */
}

: PUT

: https://api.pinarkive.com/api/v2/user/profile

: name, lastname, birthDate, country

{
  "name": "John",
  "lastname": "Doe"
}

: GET

: https://api.pinarkive.com/api/v2/user/files?page=1&limit=10

: PUT

: https://api.pinarkive.com/api/v2/user/plan

: planId

: POST

: https://api.pinarkive.com/api/v2/user/tokens/generate

: label, name, expiresInDays

: GET

: https://api.pinarkive.com/api/v2/user/tokens

: DELETE

: https://api.pinarkive.com/api/v2/user/tokens/<name>

: GET

: https://api.pinarkive.com/api/v2/plans

: PUT

: https://api.pinarkive.com/api/v2/user/plan

: planId

: POST

: https://api.pinarkive.com/api/v2/user/payments

: GET

: https://api.pinarkive.com/api/v2/user/payments/<orderId>

: GET

: https://api.pinarkive.com/api/v2/status

: GET

: https://api.pinarkive.com/api/v2/user/allocations

npm install @pinarkive/sdk

// TypeScript example
import Pinarkive from '@pinarkive/sdk';

const client = new Pinarkive({ apiKey: 'YOUR_API_KEY' });

npm install @pinarkive/sdk

// JavaScript example
const Pinarkive = require('@pinarkive/sdk');

const client = new Pinarkive({ apiKey: 'YOUR_API_KEY' });

pip install pinarkive-sdk

# Python example
from pinarkive import Pinarkive

client = Pinarkive(api_key='YOUR_API_KEY')

composer require pinarkive/sdk

// PHP example
use Pinarkive\\Pinarkive;

$client = new Pinarkive(['apiKey' => 'YOUR_API_KEY']);

go get github.com/pinarkive/pinarkive-sdk/go

// Go example
import (
    "github.com/pinarkive/pinarkive-sdk/go"
)

client := pinarkive.NewClient(pinarkive.Config{APIKey: "YOUR_API_KEY"})

// User Registration
curl -X POST https://api.pinarkive.com/auth/signup \
-H "Content-Type: application/json" \
-d '{
  "name": "John",
  "lastname": "Doe",
  "email": "john@example.com",
  "password": "securepassword123",
  "country": "US"
}'

HTTP Status Codes