Reset Public Key

This endpoint generates a new public key for your company and immediately invalidates the previous one. After the reset, any client-side integration that still uses the old public key will stop working. This includes the Pay Button plugin and any other front-end component where the public key is embedded.

Before calling this endpoint, make sure you are ready to update the public key in all of your integrations. Once the key is reset, there is no way to restore the old one. The new public key is returned in the response and should be deployed to your website, application, or any service that depends on it as soon as possible to avoid downtime.

PUT/developer/public_key
Sandbox: https://api.payiano.dev/v1/developer/public_key
Live: https://api.payiano.com/v1/developer/public_key
Security
  • Authorization header with access token is required to access this endpoint: Bearer ACCESS-TOKEN
  • Your access token should be associated to this permission developer.public_key.reset
Response
200
Response schema:
application/json
Response body:
public_key
Type: string

This attribute contains the company's public key. The public key identifies the company in client-side integrations such as the Pay Button plugin and other front-end components. It is safe to embed in browser-facing code because it only provides read-only access to public resources associated with the company.

Response sample:
JSON
1
{
2 "public_key": "pk_sandbox_company_egzaW5M3iJkl24CKhHiiwTQoRpUuWJEz" 3}