Exchange your clientId and clientSecret for a clientToken that can be be used in frontend code. clientToken will be unusable after the expiresAt time, which will normally be after 30 min.
To try the request in the mock server on the right, substitute username for clientId and password for clientSecret.
If reference_id is passed, it will be passed to the Order object upon when the transaction happens. It can then be used as a filter in the /orders endpoint
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Sardine Payments","colors":{"primary":"#2D29D7","light":"#A09EED","dark":"#2D29D7"},"favicon":"https://mintcdn.com/sardine-payments/xaOaWQltc1g9zE_Z/favicon.svg?fit=max\u0026auto=format\u0026n=xaOaWQltc1g9zE_Z\u0026q=85\u0026s=fed6c9309f39bc0ac5929a9ba82977fa","logo":{"light":"https://mintcdn.com/sardine-payments/xaOaWQltc1g9zE_Z/logo/light.svg?fit=max\u0026auto=format\u0026n=xaOaWQltc1g9zE_Z\u0026q=85\u0026s=0f19e6244a4ae82cd0f46baf0fe1fe76","dark":"https://mintcdn.com/sardine-payments/xaOaWQltc1g9zE_Z/logo/dark.svg?fit=max\u0026auto=format\u0026n=xaOaWQltc1g9zE_Z\u0026q=85\u0026s=50ef9fd772da513ce447cc0ea28a85c6"},"appearance":{"default":"light","strict":null},"background":{"decoration":null,"color":{"light":null,"dark":"#0B0C0E"}},"navbar":{"primary":{"type":"button","label":"Get Started","href":"https://www.sardine.ai/contact"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Security Portal","href":"https://security.sardine.ai","icon":{"name":"shield-halved","style":"light"}},{"anchor":"Contact Us","href":"https://www.sardine.ai/contact","icon":{"name":"envelope","style":"light"}}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sardine-payments","hasAudioNarration":false,"actualSubdomain":"sardine-payments","customDomains":["docs.payments.sardine.ai"],"gitSource":{"type":"github","owner":"sardine-ai","repo":"payment-doc","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a7f5f2ff52eb3400ddd6800","collectionId":"e8cafca8-631a-4c66-910f-2660fbf04056","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a7f5f2ff52eb3400ddd6800"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6a7f5f2ff52eb3400ddd6800:success","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"default","tag":"Integration Guides","count":16},{"language":"default","tag":"API Reference (Onramp/Offramp)","count":16},{"language":"default","tag":"API Reference (NFT)","count":15},{"language":"default","tag":"Getting Started","count":11},{"language":"default","tag":"API Reference","count":8},{"language":"default","tag":"Coverage","count":7},{"language":"default","tag":"On/Off Ramps","count":7},{"language":"default","tag":"Payment Method","count":5},{"language":"default","tag":"Identity","count":4},{"language":"default","tag":"Products","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api_reference/onramp/user-onboarding/get-client-token","slug":"/api_reference/onramp/user-onboarding/get-client-token","pageMetadata":{"title":"Get Client Token","description":"Exchange your `clientId` and `clientSecret` for a `clientToken` that can be be used in frontend code. `clientToken` will be unusable after the `expiresAt` time, which will normally be after 30 min. \n\n\nTo try the request in the mock server on the right, substitute username for clientId and password for clientSecret. \n\nIf `reference_id` is passed, it will be passed to the Order object upon when the transaction happens. It can then be used as a filter in the /orders endpoint","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml post /auth/client-tokens","href":"/api_reference/onramp/user-onboarding/get-client-token","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Exchange your \", _jsx(_components.code, {\n children: \"clientId\"\n }), \" and \", _jsx(_components.code, {\n children: \"clientSecret\"\n }), \" for a \", _jsx(_components.code, {\n children: \"clientToken\"\n }), \" that can be be used in frontend code. \", _jsx(_components.code, {\n children: \"clientToken\"\n }), \" will be unusable after the \", _jsx(_components.code, {\n children: \"expiresAt\"\n }), \" time, which will normally be after 30 min.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"To try the request in the mock server on the right, substitute username for clientId and password for clientSecret.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"If \", _jsx(_components.code, {\n children: \"reference_id\"\n }), \" is passed, it will be passed to the Order object upon when the transaction happens. It can then be used as a filter in the /orders endpoint\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get Client Token","description":"Exchange your `clientId` and `clientSecret` for a `clientToken` that can be be used in frontend code. `clientToken` will be unusable after the `expiresAt` time, which will normally be after 30 min. \n\n\nTo try the request in the mock server on the right, substitute username for clientId and password for clientSecret. \n\nIf `reference_id` is passed, it will be passed to the Order object upon when the transaction happens. It can then be used as a filter in the /orders endpoint","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml post /auth/client-tokens","href":"/api_reference/onramp/user-onboarding/get-client-token","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["User Onboarding"],"summary":"Get Client Token","description":"Exchange your `clientId` and `clientSecret` for a `clientToken` that can be be used in frontend code. `clientToken` will be unusable after the `expiresAt` time, which will normally be after 30 min. \n\n\nTo try the request in the mock server on the right, substitute username for clientId and password for clientSecret. \n\nIf `reference_id` is passed, it will be passed to the Order object upon when the transaction happens. It can then be used as a filter in the /orders endpoint","operationId":"post-crypto-auth-client_session_token","requestBody":"b9e1f9a6-a527-4dbf-bd0d-7113a249d84c","responses":{"200":"8617c03a-874a-43cd-ad71-56e20c27fc18"},"security":["d81abb9d-43b2-4ab0-b6da-4d1a2362c060"],"servers":["c977f058-be25-4ad7-838a-fbc804a15623","3c762a7d-b9bf-41dd-9247-c6687f529d44"],"x-stoplight":{"id":"pj8ogyyuc84ou"},"method":"post","type":"path","path":"/auth/client-tokens","baseUrlOptions":["https://api.sandbox.sardine.ai/v1","https://api.sardine.ai/v1"],"title":"Get Client Token","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"description":"","content":{"application/json":{"schema":{"type":"object","x-examples":{"example-1":{"referenceId":"42eadcb0-4a93-45af-9c8c-d295db5aeb6c","nft":{"name":"The best nft","price":100,"currencyCode":"USD","contractAddress":"0x7fC0344254E1663C2eF24e3c063cbec231525C20","imageUrl":"https://gateway.autograph.io/ipfsQmSAQm4gbhjSeUk7fuYppHd7Z8dfWpBvnFmqFSKqkrUJPM"},"identityPrefill":{"firstName":"fname","lastName":"lname","dateOfBirth":"2000-01-01","emailAddress":"foobar@gmail.com","phone":"+19254485826","address":{"street1":"123 main st","street2":"","city":"irvine","regionCode":"CA","postalCode":"02747","countryCode":"US"}}}},"properties":{"referenceId":{"type":"string","description":"Unique id representing a new session, must be regenerated for each call","uniqueKey":"referenceId","typeLabel":"string"},"customerId":{"type":"string","description":"ID of customer","uniqueKey":"customerId","typeLabel":"string"},"externalUserId":{"type":"string","description":"An ID generated by the merchant to uniquely identity a user.","format":"uuid","uniqueKey":"externalUserId","typeLabel":"string\u003cuuid>"},"identityPrefill":{"type":"object","description":"If these fields are filled, they will be pre filled into the UI","properties":{"firstName":{"type":"string","description":"First name of user","uniqueKey":"identityPrefill.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"Last name of user","uniqueKey":"identityPrefill.lastName","typeLabel":"string"},"dateOfBirth":{"type":"string","description":"Date of birth in YYYY-MM-DD format","uniqueKey":"identityPrefill.dateOfBirth","typeLabel":"string"},"emailAddress":{"type":"string","description":"Verified email of the user","uniqueKey":"identityPrefill.emailAddress","typeLabel":"string"},"phone":{"type":"string","description":"Verified phone number of user","uniqueKey":"identityPrefill.phone","typeLabel":"string"},"address":{"type":"object","properties":{"street1":{"type":"string","description":"Street address","uniqueKey":"identityPrefill.address.street1","typeLabel":"string"},"street2":{"type":"string","description":"Suite, Apt, etc","uniqueKey":"identityPrefill.address.street2","typeLabel":"string"},"city":{"type":"string","description":"City ","uniqueKey":"identityPrefill.address.city","typeLabel":"string"},"regionCode":{"type":"string","description":"State or province","uniqueKey":"identityPrefill.address.regionCode","typeLabel":"string"},"postalCode":{"type":"string","description":"Zipcode ","uniqueKey":"identityPrefill.address.postalCode","typeLabel":"string"},"countryCode":{"type":"string","description":"ISO standard 2 digit country code","uniqueKey":"identityPrefill.address.countryCode","typeLabel":"string"}},"uniqueKey":"identityPrefill.address","typeLabel":"object"}},"uniqueKey":"identityPrefill","typeLabel":"object"},"paymentMethodTypeConfig":{"type":"object","properties":{"default":{"type":"string","enum":["us_debit","us_credit","international_debit","international_credit","apple-pay","ach"],"description":"The payment method that shows as default in the Sardine onramp\n","uniqueKey":"paymentMethodTypeConfig.default","typeLabel":"enum\u003cstring>"},"enabled":{"type":"array","description":"List of payment methods supported by Sardine","items":{"type":"string","enum":["us_debit","us_credit","international_debit","international_credit","apple-pay","ach"],"uniqueKey":"paymentMethodTypeConfig.enabled.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"paymentMethodTypeConfig.enabled","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"paymentMethodTypeConfig","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"referenceId":"\u003cstring>","customerId":"\u003cstring>","externalUserId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","identityPrefill":{"firstName":"\u003cstring>","lastName":"\u003cstring>","dateOfBirth":"\u003cstring>","emailAddress":"\u003cstring>","phone":"\u003cstring>","address":{"street1":"\u003cstring>","street2":"\u003cstring>","city":"\u003cstring>","regionCode":"\u003cstring>","postalCode":"\u003cstring>","countryCode":"\u003cstring>"}},"paymentMethodTypeConfig":{"enabled":[]}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"8617c03a-874a-43cd-ad71-56e20c27fc18":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"clientToken":{"type":"string","description":"Authentication token returned","uniqueKey":"clientToken","typeLabel":"string"},"expiresAt":{"type":"string","description":"Timestamp when clientToken will expire","uniqueKey":"expiresAt","typeLabel":"string"}},"x-examples":{"example-1":{"clientToken":"8aeae330-9154-4051-ab98-d173ba2bc7f0"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"clientToken":"\u003cstring>","expiresAt":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"d81abb9d-43b2-4ab0-b6da-4d1a2362c060":{"ClientToken":{"type":"http","scheme":"basic","scopes":[]}}},"servers":{"c977f058-be25-4ad7-838a-fbc804a15623":{"url":"https://api.sandbox.sardine.ai/v1","description":"Sandbox"},"3c762a7d-b9bf-41dd-9247-c6687f529d44":{"url":"https://api.sardine.ai/v1","description":"Prod Server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"basic","scopes":[]},"schema":{"title":"Basic Auth","type":"object","description":"Basic authentication header of the form `Basic \u003cencoded-value>`, where `\u003cencoded-value>` is the base64-encoded string `username:password`.","isRequired":true,"properties":{"username":{"type":"string","uniqueKey":"username","isRequired":true,"typeLabel":"string","deprecated":false},"password":{"type":"string","uniqueKey":"password","isRequired":true,"typeLabel":"string","deprecated":false}},"additionalProperties":false,"deprecated":false},"schemeName":"ClientToken","name":"Authorization"}],"title":"ClientToken"}]},"originalFileLocation":"api_reference/onramp.yaml"},"subdomain":"sardine-payments","siteName":"Sardine Payments","title":"Get Client Token - Sardine Payments","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api_reference/onramp/user-onboarding/get-client-token.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Exchange your clientId and clientSecret for a clientToken that can be be used in frontend code. clientToken will be unusable after the expiresAt time, which will normally be after 30 min. To try the request in the mock server on the right, substitute username for clientId and password for clientSecret. If reference_id is passed, it will be passed to the Order object upon when the transaction happens. It can then be used as a filter in the /orders endpoint\">\u003cmeta data-mint-head name=\"application-name\" content=\"Sardine Payments\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sardine-payments/cONXdfsFZR7DqgZ5/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/sardine-payments/cONXdfsFZR7DqgZ5/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sardine-payments/cONXdfsFZR7DqgZ5/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sardine-payments/cONXdfsFZR7DqgZ5/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sardine-payments/cONXdfsFZR7DqgZ5/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sardine-payments/cONXdfsFZR7DqgZ5/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sardine-payments/cONXdfsFZR7DqgZ5/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sardine-payments/cONXdfsFZR7DqgZ5/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sardine-payments/cONXdfsFZR7DqgZ5/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Client Token - Sardine Payments\">\u003cmeta data-mint-head property=\"og:description\" content=\"Exchange your clientId and clientSecret for a clientToken that can be be used in frontend code. clientToken will be unusable after the expiresAt time, which will normally be after 30 min. To try the request in the mock server on the right, substitute username for clientId and password for clientSecret. If reference_id is passed, it will be passed to the Order object upon when the transaction happens. It can then be used as a filter in the /orders endpoint\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Sardine Payments\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.payments.sardine.ai/api_reference/onramp/user-onboarding/get-client-token\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sardine-payments.mintlify.app/_mintlify/api/og/v2?division=User+Onboarding\u0026amp;title=Get+Client+Token\u0026amp;description=Exchange+your+%60clientId%60+and+%60clientSecret%60+for+a+%60clientToken%60+that+can+be+be+used+in+frontend+code.+%60clientToken%60+will+be+unusable+after+the+%60expiresAt%60+time%2C\u0026amp;theme=afc8939af6e2d78a57ff9fb2\u0026amp;signature=2c70272512475911461fdfa66bd5ae755d32620887ff735587ac92a0ca667aff\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get Client Token - Sardine Payments\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Exchange your clientId and clientSecret for a clientToken that can be be used in frontend code. clientToken will be unusable after the expiresAt time, which will normally be after 30 min. To try the request in the mock server on the right, substitute username for clientId and password for clientSecret. If reference_id is passed, it will be passed to the Order object upon when the transaction happens. It can then be used as a filter in the /orders endpoint\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sardine-payments.mintlify.app/_mintlify/api/og/v2?division=User+Onboarding\u0026amp;title=Get+Client+Token\u0026amp;description=Exchange+your+%60clientId%60+and+%60clientSecret%60+for+a+%60clientToken%60+that+can+be+be+used+in+frontend+code.+%60clientToken%60+will+be+unusable+after+the+%60expiresAt%60+time%2C\u0026amp;theme=afc8939af6e2d78a57ff9fb2\u0026amp;signature=2c70272512475911461fdfa66bd5ae755d32620887ff735587ac92a0ca667aff\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/sardine-payments/cONXdfsFZR7DqgZ5/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Sardine Payments\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2D29D7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.payments.sardine.ai/api_reference/onramp/user-onboarding/get-client-token\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api_reference/onramp/user-onboarding/get-client-token.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.payments.sardine.ai/#organization\",\"name\":\"Sardine Payments\",\"url\":\"https://docs.payments.sardine.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sardine-payments/xaOaWQltc1g9zE_Z/logo/light.svg?fit=max\u0026auto=format\u0026n=xaOaWQltc1g9zE_Z\u0026q=85\u0026s=0f19e6244a4ae82cd0f46baf0fe1fe76\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.payments.sardine.ai#website\",\"name\":\"Sardine Payments\",\"url\":\"https://docs.payments.sardine.ai\",\"publisher\":{\"@id\":\"https://docs.payments.sardine.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.payments.sardine.ai/api_reference/onramp/user-onboarding/get-client-token#webpage\",\"url\":\"https://docs.payments.sardine.ai/api_reference/onramp/user-onboarding/get-client-token\",\"name\":\"Get Client Token\",\"description\":\"Exchange your clientId and clientSecret for a clientToken that can be be used in frontend code. clientToken will be unusable after the expiresAt time, which will normally be after 30 min. To try the request in the mock server on the right, substitute username for clientId and password for clientSecret. If reference_id is passed, it will be passed to the Order object upon when the transaction happens. It can then be used as a filter in the /orders endpoint\",\"isPartOf\":{\"@id\":\"https://docs.payments.sardine.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.payments.sardine.ai/api_reference/onramp/user-onboarding/get-client-token#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.payments.sardine.ai/api_reference/onramp/user-onboarding/get-client-token#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Sardine Payments\",\"item\":\"https://docs.payments.sardine.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Client Token\",\"item\":\"https://docs.payments.sardine.ai/api_reference/onramp/user-onboarding/get-client-token\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.payments.sardine.ai/api_reference/onramp/user-onboarding/get-client-token#apireference\",\"headline\":\"Get Client Token\",\"name\":\"Get Client Token\",\"description\":\"Exchange your clientId and clientSecret for a clientToken that can be be used in frontend code. clientToken will be unusable after the expiresAt time, which will normally be after 30 min. To try the request in the mock server on the right, substitute username for clientId and password for clientSecret. If reference_id is passed, it will be passed to the Order object upon when the transaction happens. It can then be used as a filter in the /orders endpoint\",\"url\":\"https://docs.payments.sardine.ai/api_reference/onramp/user-onboarding/get-client-token\",\"mainEntityOfPage\":{\"@id\":\"https://docs.payments.sardine.ai/api_reference/onramp/user-onboarding/get-client-token#webpage\"},\"publisher\":{\"@id\":\"https://docs.payments.sardine.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.payments.sardine.ai#website\"}}]}\u003c/script>","siteName":"Sardine Payments","nav":{"global":{"anchors":[{"anchor":"Security Portal","href":"https://security.sardine.ai","icon":{"name":"shield-halved","style":"light"}},{"anchor":"Contact Us","href":"https://www.sardine.ai/contact","icon":{"name":"envelope","style":"light"}}]},"tabs":[{"tab":"Getting Started","pages":[{"title":"Getting Started","href":"/overview/intro"}]},{"tab":"Integration Guides","pages":[{"title":"Integration Guides","href":"/integration_guides/onboarding_and_testing/client_onboarding"}]},{"tab":"API Reference (Onramp/Offramp)","groups":[{"group":"User Onboarding","pages":[{"title":"Get Client Token","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml post /auth/client-tokens","href":"/api_reference/onramp/user-onboarding/get-client-token"},{"title":"Get Customers","description":"Fetches list of all customers. Can be filtered by passing `customerId`","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml get /customers","href":"/api_reference/onramp/user-onboarding/get-customers"},{"title":"Post Customer Information","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml post /customers","href":"/api_reference/onramp/user-onboarding/post-customer-information"},{"title":"Get KYC Widget URL","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml get /kyc/widgetUrl","href":"/api_reference/onramp/user-onboarding/get-kyc-widget-url"}]},{"group":"Quote","pages":[{"title":"Get Quote","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml get /quotes","href":"/api_reference/onramp/quote/get-quote"}]},{"group":"Coverage","pages":[{"title":"Get Supported Tokens","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml get /supported-tokens","href":"/api_reference/onramp/coverage/get-supported-tokens"},{"title":"Get Enabled Tokens","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml get /enabled-tokens","href":"/api_reference/onramp/coverage/get-enabled-tokens"},{"title":"Get Geocoverage","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml get /geo-coverage","href":"/api_reference/onramp/coverage/get-geocoverage"},{"title":"Get Fiat Currencies","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml get /fiat-currencies","href":"/api_reference/onramp/coverage/get-fiat-currencies"}]},{"group":"Payment Method","pages":[{"title":"Get Payment Method information","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml get /payment-methods","href":"/api_reference/onramp/payment-method/get-payment-method-information"},{"title":"Get Add Fiat Account Widget URL","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml get /payment-methods/widgetUrl","href":"/api_reference/onramp/payment-method/get-add-fiat-account-widget-url"}]},{"group":"Order","pages":[{"title":"Get an Order by ID","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml get /orders/{orderId}","href":"/api_reference/onramp/order/get-an-order-by-id"},{"title":"Get User Orders","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml get /orders","href":"/api_reference/onramp/order/get-user-orders"}]},{"group":"Support","pages":[{"title":"Create Support Ticket","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml post /supportTickets","href":"/api_reference/onramp/support/create-support-ticket"}]},{"group":"Order Execution","pages":[{"title":"Create Onramp Order","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml post /onramp","href":"/api_reference/onramp/order-execution/create-onramp-order"},{"title":"Create Offramp Order","deprecated":null,"version":null,"openapi":"/api_reference/onramp.yaml post /offramp","href":"/api_reference/onramp/order-execution/create-offramp-order"}]}]},{"tab":"API Reference (NFT)","pages":[{"title":"API Reference (NFT)","href":"/api_reference/nft/post-client-token"}]},{"tab":"API Reference (Identity)","pages":[{"title":"API Reference (Identity)","href":"/api_reference/identity/customer-management/create-customer"}]}]},"basePath":"","title":"Get Client Token - Sardine Payments","buildId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","deploymentId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B7XKH4J3.js","utils-lOYzL7z-.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DF6jUUIM.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dpsj5f7C.js","snippetPresets-CYeiDe8v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CUFz1YZ_.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D8H_iLS4.js","shallow-DdluZBHX.js","getApiPlaygroundDisplay-B9922vev.js","CodeSnippet-CMoRNGYs.js","CodeSnippets-DwyrPHuw.js","Page-DSVu9Ucl.js","getPastedJson-G-zIvlHh.js","icon-B03fnEy0.js","MethodPill-CW7teklc.js","DuplicateIcon-CtO8eekd.js","createIcon-DZTKdM_A.js","DynamicMarkdown-D5M2At0B.js","SectionHeading-C_2NaA2U.js","axios-vUo_bRtp.js","Markdown-D7QRHV3m.js","clsx-D1Z-ELXV.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-lvhuD9Du.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CKfC4ywL.js"]}