openapi: 3.0.3 info: version: 0.1.89 title: Blockfrost.io ~ API Documentation Cardano » Accounts IPFS » Add API x-logo: url: https://staging.blockfrost.io/images/logo.svg altText: Blockfrost contact: name: Blockfrost Team url: https://blockfrost.io email: contact@blockfrost.io license: name: MIT url: https://opensource.org/licenses/MIT termsOfService: https://blockfrost.io/terms description: "Blockfrost is an API as a service that allows users to interact with the Cardano blockchain, Midnight blockchain, and parts of their ecosystems.\n\n## Tokens\n\nAfter signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project.\nHTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers.\n\n## Available networks\n\nAt the moment, you can use the following networks. Please, note that each network has its own `project_id`.\n\n
| \n Network\n | \n\n Endpoint\n | \n
| Cardano mainnet | \n\n https://cardano-mainnet.blockfrost.io/api/v0\n | \n
| Cardano preprod | \n\n https://cardano-preprod.blockfrost.io/api/v0\n | \n
| Cardano preview | \n\n https://cardano-preview.blockfrost.io/api/v0\n | \n
| Midnight mainnet | \n\n https://midnight-mainnet.blockfrost.io/api/v0\n | \n
| InterPlanetary File System | \n\n https://ipfs.blockfrost.io/api/v0\n | \n
| Programming language | \nSDK | \n
| JavaScript | \n\n blockfrost-js\n | \n
| Haskell | \n\n blockfrost-haskell\n | \n
| Python | \n\n blockfrost-python\n | \n
| Rust | \n\n blockfrost-rust\n | \n
| Golang | \n\n blockfrost-go\n | \n
| Ruby | \n\n blockfrost-ruby\n | \n
| Java | \n\n blockfrost-java\n | \n
| Scala | \n\n blockfrost-scala\n | \n
| Swift | \n\n blockfrost-swift\n | \n
| Kotlin | \n\n blockfrost-kotlin\n | \n
| Elixir | \n\n blockfrost-elixir\n | \n
| .NET | \n\n blockfrost-dotnet\n | \n
| Arduino | \n\n blockfrost-arduino\n | \n
| PHP | \n\n blockfrost-php\n | \n
| Crystal | \n\n blockfrost-crystal\n | \n
\n Hosted Endpoint only available for hosted variant.\n
\n" requestBody: content: multipart/form-data: schema: type: object properties: file: type: string format: binary x-codeSamples: - lang: Shell label: cURL source: "curl \"https://ipfs.blockfrost.io/api/v0/ipfs/add\" \\\n -X POST \\\n -H \"project_id: $PROJECT_ID\" \\\n -F \"file=@./README.md\"\n" responses: '200': description: Returns information about added IPFS object content: application/json: schema: type: object properties: name: type: string example: README.md description: Name of the file ipfs_hash: type: string example: QmZbHqiCxKEVX7QfijzJTkZiSi3WEVTcvANgNAWzDYgZDr description: IPFS hash of the file size: type: string example: '125297' description: IPFS node size in Bytes required: - name - ipfs_hash - size '400': $ref: '#/components/responses/400' '403': $ref: '#/components/responses/403' '404': $ref: '#/components/responses/404' '418': $ref: '#/components/responses/418' '429': $ref: '#/components/responses/429' '500': $ref: '#/components/responses/500' components: responses: '500': description: Internal Server Error content: application/json: schema: type: object properties: status_code: type: integer example: 500 error: type: string example: Internal Server Error message: type: string example: An unexpected response was received from the backend. required: - error - message - status_code '429': description: Usage limit reached content: application/json: schema: type: object properties: status_code: type: integer example: 429 error: type: string example: Project Over Limit message: type: string example: Usage is over limit. required: - error - message - status_code '404': description: Component not found content: application/json: schema: type: object properties: status_code: type: integer example: 404 error: type: string example: Not Found message: type: string example: The requested component has not been found. required: - error - message - status_code '403': description: Authentication secret is missing or invalid content: application/json: schema: type: object properties: status_code: type: integer example: 403 error: type: string example: Forbidden message: type: string example: Invalid project token. required: - error - message - status_code '400': description: Bad request content: application/json: schema: type: object properties: status_code: type: integer example: 400 error: type: string example: Bad Request message: type: string example: Backend did not understand your request. required: - error - message - status_code '418': description: IP has been auto-banned for extensive sending of requests after usage limit has been reached content: application/json: schema: type: object properties: status_code: type: integer example: 418 error: type: string example: Requested Banned message: type: string example: IP has been auto-banned for flooding. required: - error - message - status_code securitySchemes: project_id: type: apiKey in: header name: project_id description: 'There are multiple token types available based on network you choose when creating a Blockfrost a project, for a list of token types see available networks. '