Get Pronto uses API keys to authenticate requests. You can view and manage your API keys from your Get Pronto Dashboard.
Get Pronto provides two types of API keys, each designed for different use cases:
Secret Key pronto_sk_ | Public Key pronto_pk_ | |
|---|---|---|
| Upload files | Yes | Yes |
| List files | Yes | No |
| Get file metadata | Yes | No |
| Delete files | Yes | No |
| Generate transform URLs | Yes | No |
| Safe for browser code | No | Yes |
To access the Get Pronto API, you'll need an API key. Here's how to get one:
When using the Get Pronto SDK, provide your API key during client initialization. The SDK automatically detects the key type from the prefix:
import GetProntoClient from "getpronto-sdk";
// Full access — use in Node.js, API routes, server components
const client = new GetProntoClient({
apiKey: "pronto_sk_..."
});
const files = await client.files.list();
await client.files.upload("./image.jpg");
await client.files.delete(fileId);import GetProntoClient from "getpronto-sdk";
// Upload only — safe for browser code
const client = new GetProntoClient({
apiKey: "pronto_pk_..."
});
// Upload works
await client.files.upload(file);
// These will throw an error — not allowed with public keys
// client.files.list()
// client.files.delete(fileId)For direct REST API requests, include your API key in the request headers:
curl https://api.getpronto.io/v1/files \
-H "Authorization: ApiKey YOUR_API_KEY" \
-H "Content-Type: application/json"All API requests must be made over HTTPS. Calls made over plain HTTP will fail.
| Header | Description | Required |
|---|---|---|
| Authorization | Your API key in the format: ApiKey YOUR_API_KEY | Yes |
| Content-Type | The content type of the request body (for POST/PUT requests) | Conditional |
| Accept | The format of the response you want to receive (defaults to application/json) | No |
Best practices for keeping your keys safe:
Continue exploring our documentation with these related topics: