Other Stories

How To Create an API Key on Sudo

null

Shamsuddeen Omacy

Developer Relation Officer

Shamsuddeen Omacy

Developer Relation Officer

<p>An API (Application Programming Interface) key is like a special passcode that lets a client connect to, and use APIs. On Sudo, API keys are used for authentication and granting access to services. Think of it as a secret code that allows a specific service to interact with and access its features or data.</p><p>To create your own API key, just follow these simple steps:</p><p><strong>Step 1: Set Up a Sudo Account</strong><br>You must have a business account on Sudo before you can create an API key. Creating an account is seamless. Just click <a href="https://app.sudo.africa/signup">here </a>to get started.</p><p><strong>Step 2: Generate Your API Key</strong></p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.sudo.africa/content/images/2023/05/28700C2F-F747-4C1A-B40F-B9607A7B11BE.jpeg" class="kg-image" alt loading="lazy" width="2000" height="1246" srcset="https://blog.sudo.africa/content/images/size/w600/2023/05/28700C2F-F747-4C1A-B40F-B9607A7B11BE.jpeg 600w, https://blog.sudo.africa/content/images/size/w1000/2023/05/28700C2F-F747-4C1A-B40F-B9607A7B11BE.jpeg 1000w, https://blog.sudo.africa/content/images/size/w1600/2023/05/28700C2F-F747-4C1A-B40F-B9607A7B11BE.jpeg 1600w, https://blog.sudo.africa/content/images/size/w2400/2023/05/28700C2F-F747-4C1A-B40F-B9607A7B11BE.jpeg 2400w" sizes="(min-width: 720px) 720px"><figcaption>Sudo Dashboard, Developers Tab</figcaption></figure><ul><li>Once your account is set up, login to your dashboard and click on the <strong>"Developer"</strong> tab on the side navigation menu. There, you'll find a list of API keys you've created in the past on Sudo, and if its your first time, it will be empty.</li><li>Click on <strong>"Create API Key" </strong>button, and input the following information:</li></ul><p><strong>  a. Name:</strong> Give your API key a name that makes it easy to identify, especially if you plan on creating multiple keys.</p><p><strong>  b. Validity Period:</strong> Choose how long you want the key to remain active. You can select a period ranging from 1 day to 1 year. After this time, you'll need to create a new key to keep accessing the service. This is an added security measure for your account.</p><p><strong>  c. IP Address (optional):</strong> If you want an extra layer of security, you can specify a list of trusted IP addresses. This restricts access to your network or system to only those approved IP addresses. It's a good way to protect sensitive information and keep out unauthorized sources.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.sudo.africa/content/images/2023/05/470F682F-8CD6-4B7A-9D72-D7D57AE33108.jpeg" class="kg-image" alt loading="lazy" width="2000" height="1246" srcset="https://blog.sudo.africa/content/images/size/w600/2023/05/470F682F-8CD6-4B7A-9D72-D7D57AE33108.jpeg 600w, https://blog.sudo.africa/content/images/size/w1000/2023/05/470F682F-8CD6-4B7A-9D72-D7D57AE33108.jpeg 1000w, https://blog.sudo.africa/content/images/size/w1600/2023/05/470F682F-8CD6-4B7A-9D72-D7D57AE33108.jpeg 1600w, https://blog.sudo.africa/content/images/size/w2400/2023/05/470F682F-8CD6-4B7A-9D72-D7D57AE33108.jpeg 2400w" sizes="(min-width: 720px) 720px"><figcaption>API Key Creation Modal</figcaption></figure><p><strong>Step 3: Copy Your API Key</strong></p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.sudo.africa/content/images/2023/05/BFF6D47F-0EE9-4DC6-A53C-13FA1D767F3F.jpeg" class="kg-image" alt loading="lazy" width="2000" height="1246" srcset="https://blog.sudo.africa/content/images/size/w600/2023/05/BFF6D47F-0EE9-4DC6-A53C-13FA1D767F3F.jpeg 600w, https://blog.sudo.africa/content/images/size/w1000/2023/05/BFF6D47F-0EE9-4DC6-A53C-13FA1D767F3F.jpeg 1000w, https://blog.sudo.africa/content/images/size/w1600/2023/05/BFF6D47F-0EE9-4DC6-A53C-13FA1D767F3F.jpeg 1600w, https://blog.sudo.africa/content/images/size/w2400/2023/05/BFF6D47F-0EE9-4DC6-A53C-13FA1D767F3F.jpeg 2400w" sizes="(min-width: 720px) 720px"><figcaption>Generated API Key</figcaption></figure><ul><li>Once you've provided the required details, click the <strong>"Create"</strong> button and a confirmation window will appear with your API key. Click on <strong>"Copy API Key"</strong> to copy your new key.</li></ul><p><strong>Important</strong>: API keys should be kept strictly confidential and should not be shared with anyone including Sudo staff. Once generated, it is crucial to copy and store it securely as Sudo does not save the keys, hence it can not be retrieved.</p><p><em>To get started on Sudo as a business, visit our website</em><a href="https://www.sudo.africa/"><em> here</em></a><em>. If you’re an individual looking for a virtual card for online payments or a physical card for ATM and POS payments, download our mobile app, <strong>Root by Sudo</strong> on the iOS App Store</em><a href="https://apps.apple.com/ng/app/root-by-sudo/id6444703293"><em> here</em></a><em> or Google Play Store</em><a href="https://play.google.com/store/apps/details?id=com.sudo.root"><em> here</em></a><em>.</em></p>
Product
API

Thanks For Reading!