<p>Well, this is strange but blockfrost doesnt have the same api key for cardano mainnet and the ipfs.
You must create another project in order to use their api.
that's it.</p>

CC BY-SA 4.0
2021-06-23T12:48:29.780Z
Yes, that's correct - each network is a different API endpoint. Cardano maininet, Cardano testnet, IPFS, Cardano Alonzo...
Marek Mahut - StakeNuts
CC BY-SA 4.0
2021-06-23T12:02:04.740Z
2021-06-23T12:02:04.740Z
cheff wallets
<p>Right now I have some NFTs to pin on the blockfrost IPFS. That way I don't need to run the node 24h a day. But for some reason the API returns an error when I try to add new assets.</p>
<p>I'm using a free account and have used 0/100mb so far. I used that before and it worked but now it doesn't anymore.</p>
<p>This is the endpoint I'm using:</p>
<pre><code>curl &quot;https://ipfs.blockfrost.io/api/v0/ipfs/add&quot; \
  -X POST \
  -H &quot;project_id: $PROJECT_ID&quot; \
  -F &quot;file=@./README.md&quot;
</code></pre>
<p>The file I want to upload is a zip with a few KB, so not a big thing.</p>
<p>The error is an invalid project key, support says I need an IPFS key but I don't know how to obtain that.</p>

CC BY-SA 4.0
2021-06-23T08:55:11.103Z
Can you please share the error?
Marek Mahut - StakeNuts
CC BY-SA 4.0
2021-06-23T11:46:07.620Z
@MarekMahut-StakeNuts hi, this is basically a forbidden 403 error. I dont know why because I'm using my correct api. support says I must use a ipfs key but I dont know how to generate those...
cheff wallets
<nft><api><blockfrost>
Blockfrost API and IPFS issues
# Blockfrost API and IPFS issues

(Asked by: username_0 on 2021-06-22)

Right now I have some NFTs to pin on the blockfrost IPFS. That way I don't need to run the node 24h a day. But for some reason the API returns an error when I try to add new assets.
I'm using a free account and have used 0/100mb so far. I used that before and it worked but now it doesn't anymore.
This is the endpoint I'm using:
curl "https://ipfs.blockfrost.io/api/v0/ipfs/add" \
  -X POST \
  -H "project_id: $PROJECT_ID" \
  -F "file=@./README.md"

The file I want to upload is a zip with a few KB, so not a big thing.
The error is an invalid project key, support says I need an IPFS key but I don't know how to obtain that.

**Tags:** nft, api, blockfrost
> **Comments:**
> **username_1**: Can you please share the error?  
> **username_0**: @MarekMahut-StakeNuts hi, this is basically a forbidden 403 error. I dont know why because I'm using my correct api. support says I must use a ipfs key but I dont know how to generate those...  

---

## 1 answers

### Answer by username_0 on 2021-06-23. Score: 1

Well, this is strange but blockfrost doesnt have the same api key for cardano mainnet and the ipfs.
You must create another project in order to use their api.
that's it.

> **Comments:**
> **username_1**: Yes, that's correct - each network is a different API endpoint. Cardano maininet, Cardano testnet, IPFS, Cardano Alonzo...  

---

