{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Authentication","description":"Tilia Wallet Developer Documentation","siteUrl":"https://thunes-tilia-docs.redocly.app/","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"authentication","__idx":0},"children":["Authentication"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When you register as a Tilia customer, you are provided with a client ID and secret that are used to authenticate your application."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Important"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Keep your client ID and secret secure. Anyone who has access to it can impersonate your application."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you do not have a client ID and secret, ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://www.tilia.io/contact-sales/"},"children":["contact us"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In addition, each endpoint specifies at least one ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["scope"]}," which is required to access the endpoint's methods. Scope information can be found in the API Reference."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"sample-request","__idx":1},"children":["Sample request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the following CURL request, replace ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<your-client-id>"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<your-client-secret>"]}," with your credentials, along with passing the required scope."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"curl --location --request POST 'https://auth.tilia-inc.com/token?client_id=<your-client-id>\n&client_secret=<your-client-secret>&grant_type=client_credentials&scope=user_info'\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The authorization service returns a JSON response with the token, token type, token expiry time (in seconds), and scopes."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"access_token\": \"your-authentication-token\",\n    \"token_type\": \"Bearer\",\n    \"expires_in\": 3600,\n    \"scope\": \"user_info\"\n}\n","lang":"json"},"children":[]}]},"headings":[{"value":"Authentication","id":"authentication","depth":1},{"value":"Sample request","id":"sample-request","depth":4}],"frontmatter":{"seo":{"title":"Authentication"}},"lastModified":"2026-02-05T18:12:30.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/authentication","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}