{"id":1775,"date":"2025-05-17T15:24:36","date_gmt":"2025-05-17T09:54:36","guid":{"rendered":"https:\/\/www.smsgatewaycenter.com\/blog\/?post_type=docs&#038;p=1775"},"modified":"2025-05-17T15:24:38","modified_gmt":"2025-05-17T09:54:38","password":"","slug":"api-keys-usage","status":"publish","type":"docs","link":"https:\/\/www.smsgatewaycenter.com\/blog\/kb\/api-keys-usage\/","title":{"rendered":"What Are API Keys, and How Are They Used on SMSGatewayCenter?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>API keys<\/strong> are essential for secure communication with <strong>SMSGatewayCenter<\/strong>\u2019s Restful API, enabling you to send SMS programmatically. Here\u2019s an overview of API keys and their usage:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What Are API Keys?<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>API keys are unique codes used to authenticate and authorize requests to SMSGatewayCenter\u2019s Restful API.<\/li>\n\n\n\n<li>They act as login credentials, ensuring only authorized users can access the API for sending SMS.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How to Use API Keys on SMSGatewayCenter<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Include in Request Header<\/strong>: Add the API key to the request header for authentication when making API calls.<\/li>\n\n\n\n<li><strong>Use with UserID<\/strong>: Include your \u201cuserid\u201d parameter along with the API key as login credentials in your API requests.<\/li>\n\n\n\n<li><strong>No Password Required<\/strong>: When using an API key, you don\u2019t need to provide a password parameter, simplifying the authentication process.<\/li>\n\n\n\n<li><strong>Example Use Case<\/strong>:<\/li>\n\n\n\n<li>To send an SMS via the API on May 17, 2025, at 03:20 PM IST, your request might look like this:\n<ul class=\"wp-block-list\">\n<li>Header: <code>Authorization: Bearer your_api_key<\/code><\/li>\n\n\n\n<li>Parameter: <code>userid=your_userid<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Best Practices<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Keep your API key confidential to prevent unauthorized access.<\/li>\n\n\n\n<li>Store the API key securely in your application, avoiding hardcoding in source code.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">API keys enable secure and efficient SMS sending via <strong>SMSGatewayCenter<\/strong>\u2019s Restful API. For assistance, contact our support team.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>API keys are essential for secure communication with SMSGatewayCenter\u2019s Restful API, enabling you to send SMS programmatically. Here\u2019s an overview of API keys and their usage: What Are API Keys? How to Use API Keys on SMSGatewayCenter Best Practices API keys enable secure and efficient SMS sending via SMSGatewayCenter\u2019s Restful API. For assistance, contact our [&hellip;]<\/p>\n","protected":false},"author":118,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[1388],"doc_tag":[],"class_list":["post-1775","docs","type-docs","status-publish","hentry","doc_category-api-key"],"year_month":"2026-07","word_count":203,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"admin","author_nicename":"admin","author_url":"https:\/\/www.smsgatewaycenter.com\/blog\/author\/admin\/"},"doc_category_info":[{"term_name":"API Key","term_url":"https:\/\/www.smsgatewaycenter.com\/blog\/kb-cat\/api-key\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/docs\/1775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/users\/118"}],"replies":[{"embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/comments?post=1775"}],"version-history":[{"count":0,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/docs\/1775\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/media?parent=1775"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/doc_category?post=1775"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/doc_tag?post=1775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}