Adding enhanced security to your API integration ensures a more secure and streamlined experience when connecting to the Paytia platform. Follow these instructions to generate an API key, activate tokens, and configure security settings.
Account Security > API Secret Key
in the Paytia administration portal.Restrict Access by IP Address (Optional):
Select Webhook Output Format:
Click Save to activate your settings.
Important Notes:
Use the /api/authorize
endpoint to pre-authorize your API requests.
Example https://accounts.paytia.com/api/authorize
Example POST Request:
curl --location 'https://accounts.paytia.com/api/authorize' \
--header 'X-API-KEY: your_api_key_here' \
--header 'ACCESS-TOKEN: your_access_token_here' \
--data-raw '{
"client_id": "your_client_id_here",
"client_secret": "your_client_secret_here"
}'
your_api_key_here
, your_access_token_here
, your_client_id_here
, and your_client_secret_here
with the appropriate values.When the access token expires, use the refresh token to generate a new access token. Paytia will return a new refresh token with each renewal to maintain secure credentials.
By following these steps, you ensure that your integration with Paytia is secured with advanced token-based authentication, reducing risks and enhancing operational reliability.