{"id":2928,"date":"2023-08-30T11:53:35","date_gmt":"2023-08-30T11:53:35","guid":{"rendered":"https:\/\/sallythings.co.za\/help\/?post_type=kbx_knowledgebase&#038;p=2928"},"modified":"2023-08-30T11:56:00","modified_gmt":"2023-08-30T11:56:00","slug":"secure-api","status":"publish","type":"kbx_knowledgebase","link":"https:\/\/sallythings.co.za\/help\/sally-help\/secure-api\/","title":{"rendered":"Secure API"},"content":{"rendered":"<p><strong>How Do I Use Secure API?<\/strong><\/p>\n<p>Go to Flyout Menu &gt;\u00a0<strong>Integrations<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"726\" height=\"478\" class=\"wp-image-2929\" src=\"https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2313.png\" alt=\"https:\/\/d33v4339jhl8k0.cloudfront.net\/docs\/assets\/5c7ef84204286350d088abbb\/images\/63e295e4d2459a27d10c8deb\/file-Y3k3sfjPuk.png\" srcset=\"https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2313.png 726w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2313-300x198.png 300w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/p>\n<p>At the top of the page select\u00a0<strong>Secure API.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1195\" height=\"653\" class=\"wp-image-2930\" src=\"https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2314.png\" alt=\"https:\/\/d33v4339jhl8k0.cloudfront.net\/docs\/assets\/5c7ef84204286350d088abbb\/images\/63e297968ae59c3643e33ee4\/file-b5LiEuiQ30.png\" srcset=\"https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2314.png 1195w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2314-300x164.png 300w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2314-1024x560.png 1024w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2314-768x420.png 768w\" sizes=\"auto, (max-width: 1195px) 100vw, 1195px\" \/><\/p>\n<p>This page provides you will all available\u00a0<strong>Authentication Information<\/strong>.<\/p>\n<p><strong>Live Documentation:<\/strong>\u00a0This is a completely white-labeled document that can be accessed by anyone without needing to be logged in. It provides instructions on how to connect and allows you to test your API connection<\/p>\n<p><em>\u00a0to access this Live API Document<\/em><\/p>\n<p><strong>API Limits:\u00a0<\/strong>There are limits to the number of API calls your account can make. These\u00a0limits are based on the Plan you are on. These requests will be tracked in your account so you can see how many you have left at any given time.<\/p>\n<p><strong>Free Trial\u00a0<\/strong>= 80 calls\/month \u00a0 | \u00a0<strong>\u00a0Start<\/strong>\u00a0= 400 calls\/month\u00a0 | \u00a0\u00a0<strong>Thrive<\/strong>\u00a0= 2,000 calls\/month\u00a0 | \u00a0\u00a0<strong>Pinnacle<\/strong>\u00a0= 20,000 calls\/month<\/p>\n<p><strong>API Authorization Credentials:<\/strong>\u00a0Here you can access your\u00a0<strong>Public ID\u00a0<\/strong>and\u00a0<strong>Secret Key<\/strong>(s).<\/p>\n<p>Click\u00a0<strong>+ Add Secret Key<\/strong>\u00a0to add a new Secret Key. Give it a name and click Save for it to be added to the list.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"889\" height=\"327\" class=\"wp-image-2931\" src=\"https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2315.png\" alt=\"https:\/\/d33v4339jhl8k0.cloudfront.net\/docs\/assets\/5c7ef84204286350d088abbb\/images\/63e29af5d4571976c49de866\/file-my2gyLYsV3.png\" srcset=\"https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2315.png 889w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2315-300x110.png 300w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2315-768x282.png 768w\" sizes=\"auto, (max-width: 889px) 100vw, 889px\" \/><\/p>\n<p>You can\u00a0<strong>copy<\/strong>\u00a0your keys or\u00a0<strong>delete<\/strong>\u00a0them by clicking the appropriate icon.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1622\" height=\"330\" class=\"wp-image-2932\" src=\"https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2316.png\" alt=\"https:\/\/d33v4339jhl8k0.cloudfront.net\/docs\/assets\/5c7ef84204286350d088abbb\/images\/63e29c83d2459a27d10c8df2\/file-dS56XQMzIv.png\" srcset=\"https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2316.png 1622w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2316-300x61.png 300w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2316-1024x208.png 1024w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2316-768x156.png 768w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2316-1536x313.png 1536w\" sizes=\"auto, (max-width: 1622px) 100vw, 1622px\" \/><\/p>\n<p><strong>Who Can Access Secure API?<\/strong><\/p>\n<p>Only Super Admins and Admins will have access to Secure API. To limit this to just the Super Admin role go to\u00a0<strong>Flyout Menu<\/strong>\u00a0&gt;\u00a0<strong>Platform Branding<\/strong>.\u00a0Scroll down to the section titled\u00a0<strong>White Label Visibility<\/strong>.<\/p>\n<p>When enabled the Admin role will no longer be able to view Secure API from the Integrations menu.<\/p>\n<p><em>\u00a0to read more about\u00a0Platform Branding<\/em><\/p>\n<p><strong>How Do I Use the Live Documentation?<\/strong><\/p>\n<p>First, you will need to authenticate your account using the API credentials provided to you in\u00a0<strong>Integrations<\/strong>\u00a0&gt;\u00a0<strong>Secure API<\/strong>.<\/p>\n<p>Simply click the green &#8220;Authorize&#8221; button and paste\/authorize your Public ID and one of the Secret Keys you created inside your account. After you have successfully authorized, you will be able to extract a complete schema of Meta Attributes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1286\" height=\"1170\" class=\"wp-image-2933\" src=\"https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2317.png\" alt=\"https:\/\/d33v4339jhl8k0.cloudfront.net\/docs\/assets\/5c7ef84204286350d088abbb\/images\/63e3f14bd2459a27d10c8ff0\/file-QMAS1zls97.png\" srcset=\"https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2317.png 1286w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2317-300x273.png 300w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2317-1024x932.png 1024w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2317-768x699.png 768w\" sizes=\"auto, (max-width: 1286px) 100vw, 1286px\" \/><\/p>\n<p>After you have authorized the LIVE Interactive Documentation, the next step will be to extract a full schema of the Custom Data that is unique to your account. For this, you can use the GET \/contact\/meta endpoint. Simply toggle open the GET \/contact\/meta accordion and look for the &#8220;Try it out&#8221; button on the right side. Click that button, and then click the &#8220;Execute&#8221; button.<\/p>\n<p>The Secure API Response will include a complete schema of all the CRM Company and CRM Contact Custom Fields that exist in your account, along with all the Meta Attributes you or your developer will need to properly configure an API integration.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1190\" height=\"685\" class=\"wp-image-2934\" src=\"https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2318.png\" alt=\"https:\/\/d33v4339jhl8k0.cloudfront.net\/docs\/assets\/5c7ef84204286350d088abbb\/images\/64631d06c6234261f380e028\/file-etvDTvuagn.png\" srcset=\"https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2318.png 1190w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2318-300x173.png 300w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2318-1024x589.png 1024w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2318-768x442.png 768w\" sizes=\"auto, (max-width: 1190px) 100vw, 1190px\" \/><\/p>\n<p>At the bottom right of this Response window, you&#8217;ll find that you can Download the entire response as a JSON file, and this can be used for easy reference or passed to your developer.<\/p>\n<p>Once you have the complete schema for the CRM Company or CRM Contact data, you can use the GET, POST, and PUSH endpoints to\u00a0build a complete 2-way data sync.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2492\" height=\"916\" class=\"wp-image-2935\" src=\"https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2319.png\" alt=\"https:\/\/d33v4339jhl8k0.cloudfront.net\/docs\/assets\/5c7ef84204286350d088abbb\/images\/63e3f1a6f19b3c454741d87e\/file-NRmlj0LdDY.png\" srcset=\"https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2319.png 2492w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2319-300x110.png 300w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2319-1024x376.png 1024w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2319-768x282.png 768w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2319-1536x565.png 1536w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2319-2048x753.png 2048w\" sizes=\"auto, (max-width: 2492px) 100vw, 2492px\" \/><\/p>\n<p><strong><em>HOW DO I TEST IT?<\/em><\/strong><\/p>\n<p>After you have authorized the LIVE Interactive Documentation, you are able to perform LIVE tests directly from here.<\/p>\n<p>Inside each Endpoint toggle, you will find a &#8220;Try it out&#8221; button which will open a data field. Inside that field, you are able to configure API calls that will connect to the Secure API Endpoint and make LIVE changes to the database. You will see these changes immediately reflected in your account, so before using this, be sure you understand the full ramifications of each call you execute.<\/p>\n<p>In order to have a better perspective on the responses without using real credentials, certain types of requests were built to be able to use test credentials that will return random dummy responses. Dummy-type credentials can only be used for requests where the text &#8221;\u00a0<em>* dummy request allowed<\/em>&#8221; appears in the description. The test credentials are:<\/p>\n<p>X-Public-ID:\u00a000000000-0000-0000-0000-000000000000<\/p>\n<p>X-Secret-Key:\u00a0DummySecretKey<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2494\" height=\"1344\" class=\"wp-image-2936\" src=\"https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2320.png\" alt=\"https:\/\/d33v4339jhl8k0.cloudfront.net\/docs\/assets\/5c7ef84204286350d088abbb\/images\/63e3f1daf19b3c454741d87f\/file-tqmiorIYD0.png\" srcset=\"https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2320.png 2494w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2320-300x162.png 300w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2320-1024x552.png 1024w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2320-768x414.png 768w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2320-1536x828.png 1536w, https:\/\/sallythings.co.za\/help\/wp-content\/uploads\/2023\/08\/https-d33v4339jhl8k0-cloudfront-net-docs-assets-1-2320-2048x1104.png 2048w\" sizes=\"auto, (max-width: 2494px) 100vw, 2494px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How Do I Use Secure API? Go to Flyout Menu &gt;\u00a0Integrations. At the top of the page select\u00a0Secure API. This page provides you will all available\u00a0Authentication Information. Live Documentation:\u00a0This is a completely white-labeled document that can be accessed by anyone without needing to be logged in. It provides instructions on how to connect and allows [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"comment_status":"open","ping_status":"closed","template":"","kbx_category":[30,40],"kbx_tag":[],"class_list":["post-2928","kbx_knowledgebase","type-kbx_knowledgebase","status-publish","hentry","kbx_category-integration","kbx_category-default-section"],"_links":{"self":[{"href":"https:\/\/sallythings.co.za\/help\/wp-json\/wp\/v2\/kbx_knowledgebase\/2928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sallythings.co.za\/help\/wp-json\/wp\/v2\/kbx_knowledgebase"}],"about":[{"href":"https:\/\/sallythings.co.za\/help\/wp-json\/wp\/v2\/types\/kbx_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/sallythings.co.za\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sallythings.co.za\/help\/wp-json\/wp\/v2\/comments?post=2928"}],"version-history":[{"count":1,"href":"https:\/\/sallythings.co.za\/help\/wp-json\/wp\/v2\/kbx_knowledgebase\/2928\/revisions"}],"predecessor-version":[{"id":2937,"href":"https:\/\/sallythings.co.za\/help\/wp-json\/wp\/v2\/kbx_knowledgebase\/2928\/revisions\/2937"}],"wp:attachment":[{"href":"https:\/\/sallythings.co.za\/help\/wp-json\/wp\/v2\/media?parent=2928"}],"wp:term":[{"taxonomy":"kbx_category","embeddable":true,"href":"https:\/\/sallythings.co.za\/help\/wp-json\/wp\/v2\/kbx_category?post=2928"},{"taxonomy":"kbx_tag","embeddable":true,"href":"https:\/\/sallythings.co.za\/help\/wp-json\/wp\/v2\/kbx_tag?post=2928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}