Skip to content

API Reference

All endpoints, parameters, request/response formats, and error codes.

Base URL

https://api.ipfs.ninja

All requests require an API key via the X-Api-Key header. See Authentication for details.

Endpoints

MethodPathDescriptionPage
POST/upload/newUpload a file to IPFSFiles
GET/upload/listList uploaded filesFiles
GET/file/:cidGet file metadata by CIDFiles
POST/pinPin existing CID from IPFS networkPinning
GET/pin/:cidCheck pin statusPinning
GET/user/profileGet user profileProfile
POST/apikeysCreate API keyAPI Keys
GET/apikeysList API keysAPI Keys
DELETE/apikeys/:keyDelete API keyAPI Keys
GET/analyticsUsage analyticsAnalytics
PUT/gateway-settingsUpdate gateway settingsGateways
POST/gateway-tokensCreate gateway tokenGateways
GET/gateway-tokensList gateway tokensGateways
DELETE/gateway-tokens/:prefixDelete gateway tokenGateways
POST/upload/signed-urlGenerate signed upload tokenSigned Tokens
GET/signed-tokensList signed tokensSigned Tokens
DELETE/signed-tokens/:tokenIdRevoke signed tokenSigned Tokens
GET/image/:cidOptimize image on-the-flyImage Optimization

S3-Compatible API

Use any AWS SDK to upload and manage files on IPFS Ninja. Point your S3 client at https://s3.ipfs.ninja with your API key as credentials.

https://s3.ipfs.ninja
S3 OperationDescription
PutObjectUpload a file to IPFS
GetObjectDownload a file
HeadObjectGet file metadata
DeleteObjectUnpin and delete a file
ListObjectsV2List files with prefix filtering
CreateMultipartUploadStart a multipart upload (up to 5 GB)
UploadPartUpload a part
CompleteMultipartUploadFinish multipart upload
ListBucketsList your gateways
CreateBucketCreate a gateway
DeleteBucketDelete a gateway

See S3 Compatibility for full documentation, code examples, and migration guides.