Generate Token
The Generate Token section allows you to create a token for secure transactions and API access in the ClaPay Back Office ๐.
This token is essential for authenticating your requests and ensuring the security of your operations ๐ก๏ธ.
๐งพ What is a payment token?
โA payment token is a secure API key ๐ that enables you to integrate payment functionalities into your applications or systems ๐ป.
It acts as a digital identity to authenticate your requests to our payment API ๐.
โ Advantages of payment tokens
โ- ๐ก๏ธ Enhanced security: Tokens enable you to carry out transactions without exposing your login details.
- ๐ฏ Access control: You can create tokens with specific permissions for different functionalities.
- ๐ Traceability: Each token can be individually tracked and revoked in the event of compromise.
- โ๏ธ Simplified integration: Easily integrate our payment services into your applications.
โ๏ธ How to generate a token
โ๐ Create a new token
โClick on the Create a new API token button above โ.

๐ฑ๏ธ Once you have clicked on this button, a new page will appear ๐ where you can enter the information relating to the token ๐. This includes the name ๐ท๏ธ of the token, the validation period โณ, and a description ๐ for the token that will be generated.
๐งพ Fill in the required fields
โ๐ต Step 1๏ธโฃ ( Token Infos )โ
When creating a new token, you will need to fill in the following fields:
- โ๏ธ Give your token a descriptive name for easy identification ๐ท๏ธ.
- โณ Set an token duration if you wish to limit the token's validity ๐.
- ๐ Add a description to document the intended use of the token ๐.

๐ต Step 2๏ธโฃ ( Token Composition )โ
๐ Learn how the token is structured ๐งฑ and what components define its behavior ๐ง and value ๐ฐ.
- Click on the โ add composition button.

- ๐ Next, select the country ๐ณ๏ธ that will be linked to the token ๐. For this example, we will select Ivory Coast ๐จ๐ฎ as the country.
๐ Note that you can select all available countries ๐ from the list by clicking on the corresponding checkbox โ๏ธ.


- โ Select the methods of your choice ๐ฏ for the different operators ๐ถ available.

- Next, click on the โ save button, and a page like this will appear.

๐ผ๏ธ The following image shows the case where we add a new composition for the country Mali ๐ฒ๐ฑ.
Now suppose we want to delete one or more methods linked to operators for a particular country ๐, an operator with its methods, or even the entire composition for that country. Simply hover over the corresponding card ๐, then use the delete buttons โ to remove what you want.

๐ Generate the token
โFinally, click on Generate button to generate your token ๐๏ธ.
๐ Copy the token
โCopy the generated token and store it securely ๐๏ธ. You will not be able to view it again after this step โ.

๐ Treat your tokens like passwords. Never share them or store them in publicly accessible files. Revoke any compromised token immediately โ ๏ธ.
๐ List of generated tokens
โThis table displays all the tokens you have generated, along with their details:
- ๐ท๏ธ Name: The name you assigned to the token.
- ๐ Created At: The date and time the token was created.
- ๐ Expiry Date: The expiration date of the token (if set).
- ๐ Status: The current status of the token (active or revoked).
- ๐งฉ Composition: The composition of the token ๐งฌ.
- โฑ๏ธ Last Date Used: The last date and time the token was used.
- ๐ Description: A brief description of the token's intended use ๐๏ธ.

๐ In the table displaying the list of generated tokens ๐, you can view the details of each row ๐ by clicking on the View ๐ button in the corresponding Composition column.

Was this page helpful?