{"items":[{"type":"link","label":"Authentication API","link":"/auth","routeSlug":"/auth","content":{"contentType":"overview","meta":{"name":"Authentication API"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"auth.json","url":"/_bundle/auth.json?download"},{"kind":"download","label":"auth.yaml","url":"/_bundle/auth.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[{"kind":"email","title":"QuiQup Support","email":"support@quiqup.com","label":"support@quiqup.com","withCopyButton":true,"copyContent":"support@quiqup.com"}]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"/_mock/auth","description":"Mock server","isMockServer":true},{"url":"https://platform-api.quiqup.com","description":"Production Server"},{"url":"https://platform-api.staging.quiqup.com","description":"Staging Server"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Authentication API (1.0.0)","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Quiqup uses "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"OAuth2 authentication"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for secure API access."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"For more details on OAuth2 please refer to the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://oauth.net/getting-started/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"OAuth2 Documentation"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]}],"sectionId":"/auth"}],"sectionId":"/auth"}]}]}},{"type":"group","label":"Access Token","link":"/auth/access-token","routeSlug":"/auth/access-token","items":[{"label":"Get access token","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/auth/access-token/paths/~1oauth~1token/post","routeSlug":"/auth/access-token/paths/~1oauth~1token/post","metadata":{"seo":{"title":"Get access token","description":"Overview"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Get access token","isWebhook":false,"pointer":"/paths/~1oauth~1token/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get access token","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"access-token/paths/~1oauth~1token/post/request/overview","deepLinkHash":"/access-token/paths/~1oauth~1token/post#access-token/paths/~1oauth~1token/post/request/overview"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Overview"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"All our API endpoints support the "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"OAuth 2.0 authentication protocol"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"access-token/paths/~1oauth~1token/post/request/how-authentication-works","deepLinkHash":"/access-token/paths/~1oauth~1token/post#access-token/paths/~1oauth~1token/post/request/how-authentication-works"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"How Authentication Works"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To start sending authenticated HTTP requests, follow these steps:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"1️⃣ "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtain an OAuth2 Access Token"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Use your provided "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"client_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"client_secret"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to request an access token."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note: Staging and Production have different token expiration rules."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"2️⃣ "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Token Expiration"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Production"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Tokens are "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"valid for 7 days"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Staging"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Tokens expire "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"every 1 hour"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"3️⃣ "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Token Renewal"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ensure your integration "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"handles token renewal properly"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can either "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"track the token expiry time"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"automatically request a new token"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" when your token has expired."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"hr","attributes":{},"children":[]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"access-token/paths/~1oauth~1token/post/request/obtaining-an-access-token","deepLinkHash":"/access-token/paths/~1oauth~1token/post#access-token/paths/~1oauth~1token/post/request/obtaining-an-access-token"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtaining an Access Token"},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"access-token/paths/~1oauth~1token/post/request/post-oauthtoken","deepLinkHash":"/access-token/paths/~1oauth~1token/post#access-token/paths/~1oauth~1token/post/request/post-oauthtoken"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"POST /oauth/token"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"🔹 "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Description"},"children":[]}]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtain an "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"OAuth2 access token"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" using the "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Client Credentials"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" flow."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"🔹 "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Token Expiry"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Production:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"expires_in: 604800"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (7 days)"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Staging:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"expires_in: 3600"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (1 hour)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"access-token/paths/~1oauth~1token/post/request/request-body-example","deepLinkHash":"/access-token/paths/~1oauth~1token/post#access-token/paths/~1oauth~1token/post/request/request-body-example"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"📥 Request Body Example"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"{\n  \"client_id\": \"your_client_id\",\n  \"client_secret\": \"your_client_secret\",\n  \"grant_type\": \"client_credentials\"\n}\n","language":"json"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"{\n  \"client_id\": \"your_client_id\",\n  \"client_secret\": \"your_client_secret\",\n  \"grant_type\": \"client_credentials\"\n}\n"},"children":[]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"access-token/paths/~1oauth~1token/post/request/success-response-example","deepLinkHash":"/access-token/paths/~1oauth~1token/post#access-token/paths/~1oauth~1token/post/request/success-response-example"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"📤 Success Response Example"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"{\n  \"access_token\": \"245c47495152da4845b65f57facdd7c8b6765451e946b9faa4817c245a335110\",\n  \"created_at\": 1616571253,\n  \"expires_in\": 604800,\n  \"token_type\": \"bearer\"\n}\n","language":"json"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"{\n  \"access_token\": \"245c47495152da4845b65f57facdd7c8b6765451e946b9faa4817c245a335110\",\n  \"created_at\": 1616571253,\n  \"expires_in\": 604800,\n  \"token_type\": \"bearer\"\n}\n"},"children":[]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"access-token/paths/~1oauth~1token/post/request/staging-response-example","deepLinkHash":"/access-token/paths/~1oauth~1token/post#access-token/paths/~1oauth~1token/post/request/staging-response-example"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"📤 Staging Response Example"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"{\n  \"access_token\": \"b76d4a126cf84959a8276f812321d598\",\n  \"created_at\": 1616571253,\n  \"expires_in\": 3600,\n  \"token_type\": \"bearer\"\n}\n","language":"json"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"{\n  \"access_token\": \"b76d4a126cf84959a8276f812321d598\",\n  \"created_at\": 1616571253,\n  \"expires_in\": 3600,\n  \"token_type\": \"bearer\"\n}\n"},"children":[]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"access-token/paths/~1oauth~1token/post/request/common-errors-and-troubleshooting","deepLinkHash":"/access-token/paths/~1oauth~1token/post#access-token/paths/~1oauth~1token/post/request/common-errors-and-troubleshooting"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Common Errors & Troubleshooting"},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"access-token/paths/~1oauth~1token/post/request/invalid-client-credentials","deepLinkHash":"/access-token/paths/~1oauth~1token/post#access-token/paths/~1oauth~1token/post/request/invalid-client-credentials"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Invalid Client Credentials"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"🔹 "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HTTP 401 Unauthorized"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Cause:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" The provided "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"client_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"client_secret"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is incorrect."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fix:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" Verify credentials in your API settings."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"access-token/paths/~1oauth~1token/post/request/invalid-grant-type","deepLinkHash":"/access-token/paths/~1oauth~1token/post#access-token/paths/~1oauth~1token/post/request/invalid-grant-type"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Invalid Grant Type"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"🔹 "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HTTP 400 Bad Request"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Cause:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"grant_type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" must be "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\\\"client_credentials\\\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fix:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" Ensure you pass "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"grant_type=client_credentials"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" in the request."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"access-token/paths/~1oauth~1token/post/request/token-expired","deepLinkHash":"/access-token/paths/~1oauth~1token/post#access-token/paths/~1oauth~1token/post/request/token-expired"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Token Expired"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"🔹 "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HTTP 401 Unauthorized"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Cause:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" The access token has expired."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fix:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" Request a new access token using "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"POST /oauth/token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json","application/x-www-form-urlencoded"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_31","exampleIds":["paths/~1oauth~1token/post/requestBody/content/application~1json/examples/access_token","paths/~1oauth~1token/post/requestBody/content/application~1json/examples/refresh_token"]},"application/x-www-form-urlencoded":{"schemaId":"schema_31","exampleIds":["paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/examples/access_token","paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/examples/refresh_token"]}},"schemaId":"schema_31","exampleIds":["paths/~1oauth~1token/post/requestBody/content/application~1json/examples/access_token","paths/~1oauth~1token/post/requestBody/content/application~1json/examples/refresh_token"],"pointer":"/paths/~1oauth~1token/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/oauth/token","servers":[{"url":"/_mock/auth","description":"Mock server","isMockServer":true},{"url":"https://platform-api.quiqup.com","description":"Production Server"},{"url":"https://platform-api.staging.quiqup.com","description":"Staging Server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"schema_31","exampleIds":["paths/~1oauth~1token/post/requestBody/content/application~1json/examples/access_token","paths/~1oauth~1token/post/requestBody/content/application~1json/examples/refresh_token"]},"application/x-www-form-urlencoded":{"schemaId":"schema_31","exampleIds":["paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/examples/access_token","paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/examples/refresh_token"]}},"responseCodes":["200","400","401","422"],"pointer":"/oauth/token","href":"access-token/paths/~1oauth~1token/post","summary":"Get access token"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/auth","description":"Mock server","isMockServer":true},{"url":"https://platform-api.quiqup.com","description":"Production Server"},{"url":"https://platform-api.staging.quiqup.com","description":"Staging Server"}],"schemaId":"schema_31","exampleIds":["paths/~1oauth~1token/post/requestBody/content/application~1json/examples/access_token","paths/~1oauth~1token/post/requestBody/content/application~1json/examples/refresh_token"],"mediaTypes":["application/json","application/x-www-form-urlencoded"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_31","exampleIds":["paths/~1oauth~1token/post/requestBody/content/application~1json/examples/access_token","paths/~1oauth~1token/post/requestBody/content/application~1json/examples/refresh_token"]},"application/x-www-form-urlencoded":{"schemaId":"schema_31","exampleIds":["paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/examples/access_token","paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/examples/refresh_token"]}},"examples":[{},{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The expires_in fields returns how many seconds the returned access_token is valid for. After that you will have to request this endpoint again in order to generate a new access_token."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_32","exampleIds":["paths/~1oauth~1token/post/responses/200/content/application~1json/examples/default"]}},"schemaId":"schema_32","exampleIds":["paths/~1oauth~1token/post/responses/200/content/application~1json/examples/default"]},{"code":"400","description":"Bad Request"},{"code":"401","description":"Unauthorized"},{"code":"422","description":"Unprocessable Entity"}],"pointer":"/paths/~1oauth~1token/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"schema_32","exampleIds":["paths/~1oauth~1token/post/responses/200/content/application~1json/examples/default"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_32","exampleIds":["paths/~1oauth~1token/post/responses/200/content/application~1json/examples/default"]}}},{"code":"400"},{"code":"401"},{"code":"422"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/access-token/paths/~1oauth~1token/post"}],"panels":[]}]},"httpPath":"/oauth/token"}],"content":{"contentType":"group","meta":{"name":"Access Token"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Access Token","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/oauth/token","summary":"Get access token","prefix":{"name":"post","color":"post"},"badges":[],"link":"/access-token/paths/~1oauth~1token/post","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"schema_31":{"kind":"json-schema","data":{"type":"object","properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"},"refresh_token":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The refresh token to use to get a new access token. Only used when the grant_type is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"refresh_token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"grant_type":{"type":"string","default":"client_credentials","enum":["client_credentials","refresh_token"]}}},"id":"schema_31"},"schema_32":{"kind":"json-schema","data":{"type":"object","properties":{"access_token":{"type":"string"},"created_at":{"type":"integer"},"expires_in":{"type":"integer"},"token_type":{"type":"string","default":"bearer"}},"example":{"access_token":"245c47495152da4845b65f57facdd7c8b6765451e946b9faa4817c245a335110","created_at":1616571253,"expires_in":3600,"token_type":"bearer"}},"id":"schema_32"}},"exampleStore":{"paths/~1oauth~1token/post/requestBody/content/application~1json/examples/access_token":{"value":{"client_id":"your_client_id","client_secret":"your_client_secret","grant_type":"client_credentials"},"key":"access_token","summary":"access_token","id":"paths/~1oauth~1token/post/requestBody/content/application~1json/examples/access_token"},"paths/~1oauth~1token/post/requestBody/content/application~1json/examples/refresh_token":{"value":{"grant_type":"refresh_token","refresh_token":"your_refresh_token"},"key":"refresh_token","summary":"refresh_token","id":"paths/~1oauth~1token/post/requestBody/content/application~1json/examples/refresh_token"},"paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/examples/access_token":{"value":{"client_id":"your_client_id","client_secret":"your_client_secret","grant_type":"client_credentials"},"key":"access_token","summary":"access_token","id":"paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/examples/access_token"},"paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/examples/refresh_token":{"value":{"grant_type":"refresh_token","refresh_token":"your_refresh_token"},"key":"refresh_token","summary":"refresh_token","id":"paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/examples/refresh_token"},"paths/~1oauth~1token/post/responses/200/content/application~1json/examples/default":{"value":{"access_token":"245c47495152da4845b65f57facdd7c8b6765451e946b9faa4817c245a335110","created_at":1616571253,"expires_in":3600,"token_type":"bearer"},"key":"default","summary":"default","id":"paths/~1oauth~1token/post/responses/200/content/application~1json/examples/default"}},"securitySchemeStore":{},"servers":[{"url":"/_mock/auth","isMockServer":true,"description":"Mock server"},{"url":"https://platform-api.quiqup.com","description":"Production Server"},{"url":"https://platform-api.staging.quiqup.com","description":"Staging Server"}]},"options":{"hideSidebar":true,"mockServer":{"url":"/_mock/auth","position":"first","description":"Mock server"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/auth.json?download"},{"url":"/_bundle/auth.yaml?download"}],"excludeFromSearch":false,"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Authentication API","description":"Quiqup uses **OAuth2 authentication** for secure API access.\n\nFor more details on OAuth2 please refer to the [OAuth2 Documentation](https://oauth.net/getting-started/).\n"}},"baseSlug":"/auth","routesMapping":{}}