Skip to main content
Upload the contents of a URL to Pinata

Usage

Returns

Parameters

url

  • Type: string
Accepts a URL in the form of a string. The mimetype of the URL body provided in the headers typically determines the resulting file.

group (Optional)

  • Type: string
Upload to a specific group by passing in the groupId

keyvalues (Optional)

  • Type: Record<string, string>
Add optional keyvalues to file

name (Optional)

  • Type: string
Add optional name to file

url (Optional)

  • Type: string
Pass in a presigned upload URL created with createSignedURL

key (Optional)

  • Type: string
Upload a file using a secondary API key generated through keys.create()