all-about-apikey/web3-storage
Muhammad Daffa 7372a52709 Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00
..
README.md Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00

README.md

Web3 Storage

Description

File Sharing and Storage for Free with 1TB Space

Example Request

  • Curl
curl "https://api.web3.storage/user/uploads" -H "Authorization: Bearer {{token}}"
  • Raw
GET /user/uploads HTTP/1.1
Host: api.web3.storage
Authorization: Bearer {{token}}

Response

  • Success
[]
  • Error
{
    "code":"ERROR_TOKEN_NOT_FOUND",
    "message":"API token no longer valid"
}

or

{
    "code":"ERROR_UNRECOGNISED_TOKEN",
    "message":"Could not parse provided API token"
}

Regex

^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$

Example API key

eyJpc3MiOiJPbmxpbmUgSldUIEJ1aWxkZXIiLCJpYXQiOjE2M.jkxMDcxMjAsImV4cCI6MTY2MDY0MzEyMCwiYXVkIjo........