Skip to main content

ResQ.Storage.PinataOptions

PinataOptions.ApiKey Property

Gets or sets the Pinata API key for authentication.
public string? ApiKey { get; set; }

Property Value

System.String
The API key string, or null if not using API key authentication.

Example

options.ApiKey = Environment.GetEnvironmentVariable("PINATA_API_KEY");
options.ApiSecret = Environment.GetEnvironmentVariable("PINATA_API_SECRET");

Remarks

API key authentication is an alternative to JWT tokens. When using API keys, both ApiKey and ApiSecret must be provided. JWT authentication is preferred when available. Store this value securely and never commit it to source control.