Flag
Login Signup

: https://api.pinarkive.com

: 1.0

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/file

: multipart/form-data

: file (multipart/form-data)

:

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

:

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

: POST

: https://api.pinarkive.com/file/directory

: application/json

: dirPath

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

:

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

: POST

: https://api.pinarkive.com/file/pin/<cid>

:

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

:

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

: DELETE

: https://api.pinarkive.com/file/remove/<cid>

:

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

:

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

: GET

: https://api.pinarkive.com/me

{
  /* user profile object */
}

: PUT

: https://api.pinarkive.com/me

: name, lastname, birthDate, country

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

: GET

: https://api.pinarkive.com/me/uploads?page=1&limit=10

: PUT

: https://api.pinarkive.com/me/plan

: planId

: POST

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

: label, name, expiresInDays

: GET

: https://api.pinarkive.com/api/tokens/list

: DELETE

: https://api.pinarkive.com/api/tokens/revoke/<name>

: GET

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

: PUT

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

: planId

: POST

: https://api.pinarkive.com/payment/multisafepay/create

: GET

: https://api.pinarkive.com/payment/multisafepay/status/<orderId>

: GET

: https://api.pinarkive.com/status/<cid>

: GET

: https://api.pinarkive.com/status/allocations/<cid>

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