API Keys


On this page

API Keys Overview

Moyasar offer its clients a unique API keys to authenticates their API request.

Each account is supplied with two pairs of keys: one for testing and the other for running live transactions.

For each mode there are two types of API keys: publishable and secret.

  • The secret key enables you to all kinds of operations available in this documentation. The secret key is powerful and thus it must be kept secret at all times.
  • The publishable key enables you to perform one operation only: create a payment. Thus, you can attach the publishable key to public web forms (e.g., as an HTML hidden field).

Get your API keys

To get an API key for the Moyasar API:

  1. Go to https://dashboard.moyasar.com/
  2. Click on the Login tab.
  3. After signing in, click on your username.
  4. Select Account Settings from the dropdown menu.

    account settings

  5. Under the API Keys tab, you’ll find all the account keys.

    api keys

  6. Copy the desired key by clicking on copy icon copy icon

Renew the API keys

If you need to block an API key and generate a new one:

  1. Go to https://dashboard.moyasar.com/
  2. Click on the Login tab.
  3. After signing in, click on your username.
  4. Select Account Settings from the dropdown menu.

    account settings

  5. Under the API Keys tab, you’ll find all the account keys.

    api keys

  6. Renew the desired key by clicking on refresh icon refresh icon

Last Modified : Jan 2019