In this article we will guide you through how to create and edit API Tokens through the Apifon platform.
Before we begin
Apifon supports HMAC API Token type and OAuth.
HMAC token
HMAC is a specific type of message authentication involving a cryptographic hash function and a secret cryptographic key. It may be used to simultaneously verify both the data integrity and the authenticity of a message.
OAuth token
OAuth is a widely used security standard that enables secure access to protected resources.
Create a new API Token
To get started, from the top menu on the blue bar, select your Profile icon and then Developers button.
Then, follow the steps bellow:
1. Click Add button.
2. Select type for your new Token.
3. Enable the scopes you want to be accessible through your Token.
-
- Lists: Write and Read permission - Read permission gives access to list's information and Write permission access to edit them.
- If a token has to Write permission, it has also read permission at the same time.
- Subscribers: It is similar to lists scopes, it gives access to subscribers information
- SMS: Access to send SMS
- SMS Defaults The sender ID you are going to use to send SMS
- Viber: Access to send Viber
- Viber Defaults: The sender ID you are going to use to send Viber messages.
Keep in mind that the IM Sender ID will be the one you have activated with Viber.
- Lists: Write and Read permission - Read permission gives access to list's information and Write permission access to edit them.
4. Select Create.
Edit & copy API Tokens
From the top menu on the blue bar, select your Profile icon and then Developers.
At this point, you can:
1. Copy your Token. You can copy the API Key and Token by selecting the copy button
2. Delete your Token. To delete an API Token, select it, and then click on Delete button.
3. Edit your Token's settings:
Here you can find all Tokens that have been created and see information like:
- Allowed IPs. In case you own a static IP, you may restrict the IPs from which your requests will be allowed from. To do so, erase the asterisk, and insert your IPv4.
- Description. To change your Token's description, select the token, and fill the relative text field.
- API Key. To change an existing API Key, select your Token, and then navigate to the Additional Options > Generate New > Save.
Please note that if you proceed with the generation of a new key, it will take some time for the changes to apply.
- Scopes. Enable or disable the scopes you want to be accessible through your Token.
- Lists: Write and Read permission - Read permission gives access to list's information and Write permission access to edit them.
- If a token has to Write permission, it has also read permission at the same time.
- Subscribers: It is similar to lists scopes, it gives access to subscribers information
- SMS: Access to send SMS
- SMS Defaults The sender ID you are going to use to send SMS
- Viber: Access to send Viber
- Viber Defaults: The sender ID you are going to use to send Viber messages.
Keep in mind that the IM Sender ID will be the one you have activated with Viber.
- Lists: Write and Read permission - Read permission gives access to list's information and Write permission access to edit them.
Thank you for your reading!