Authentication

  • The PriceBlocs API uses API keys to authenticate requests. You can view and manage your API keys from within your PriceBlocsapp settings.
  • Test mode secret keys have the prefixPB_sk_test_and live mode secret keys have the prefixPB_sk_live_.
  • Test mode keys can only access and manage test mode resources. Only live mode secret keys can be used to initiate live mode checkout sessions.
  • Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
  • Request authentication can be made via bearer auth header like in the example shown on this page.
  • All requests using livemode keys must be made over HTTPS. Test mode keys can be accessed via your API keys dashboard.
Have any questions or feedback?
Authenticated request
1
curl https://api.priceblocs.com/v1/payment-links \
2
-H "Authorization: Bearer {{API_KEY_SECRET_TEST}}"
Show docs menu

Authentication

  • The PriceBlocs API uses API keys to authenticate requests. You can view and manage your API keys from within your PriceBlocsapp settings.
  • Test mode secret keys have the prefixPB_sk_test_and live mode secret keys have the prefixPB_sk_live_.
  • Test mode keys can only access and manage test mode resources. Only live mode secret keys can be used to initiate live mode checkout sessions.
  • Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
  • Request authentication can be made via bearer auth header like in the example shown on this page.
  • All requests using livemode keys must be made over HTTPS. Test mode keys can be accessed via your API keys dashboard.
Have any questions or feedback?
Authenticated request
1
curl https://api.priceblocs.com/v1/payment-links \
2
-H "Authorization: Bearer {{API_KEY_SECRET_TEST}}"