➟ /user/api-keys?perms=upload&expiry=24h

Use the endpoint to create an API key on your server that you can expose to any client. This is useful for uploading large files from the browser since you do not have to proxy through your own servers and potentially take ingress or egress costs.

Make sure you use this endpoint with the query parameters. If you don't you will create an API key with a longer expiry and potentially more permissions then you should be granting through this API.

This endpoint should never called on the client. You should never expose your root API key to the client.

CURL
curl -X POST "https://api.estuary.tech/user/api-keys?perms=upload&expiry=24h" -H "Authorization: Bearer REPLACE_ME_WITH_API_KEY" -H "Accept: application/json"