{"items":[{"type":"link","label":"Tokens API","link":"/openapi/tokens/swagger","routeSlug":"/openapi/tokens/swagger","content":{"contentType":"overview","meta":{"name":"Tokens API"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"swagger.json","url":"/_bundle/openapi/tokens/swagger.json?download"},{"kind":"download","label":"swagger.yaml","url":"/_bundle/openapi/tokens/swagger.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[]},{"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":"https://api.sandbox.congruitcredit.com","description":"Sandbox Environment"},{"url":"https://api.congruitcredit.com","description":"Production Environment"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Tokens API (v1)","showPageActions":true}],"sectionId":"/openapi/tokens/swagger"}]}]}},{"type":"separator","label":"Tokens","content":null},{"type":"group","label":"Authentication","link":"/openapi/tokens/swagger/authentication","routeSlug":"/openapi/tokens/swagger/authentication","items":[{"label":"Request a new token","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/tokens/swagger/authentication/paths/~1v1~1tokens/post","routeSlug":"/openapi/tokens/swagger/authentication/paths/~1v1~1tokens/post","metadata":{"seo":{"title":"Request a new token","description":"Generates a new token using client credentials"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Request a new token","isWebhook":false,"pointer":"/paths/~1v1~1tokens/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Request a new token","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Generates a new token using client credentials"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_12"}},"schemaId":"schema_12","pointer":"/paths/~1v1~1tokens/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v1/tokens","servers":[{"url":"https://api.sandbox.congruitcredit.com","description":"Sandbox Environment"},{"url":"https://api.congruitcredit.com","description":"Production Environment"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"schema_12"}},"responseCodes":["200","400","401"],"pointer":"/v1/tokens","href":"authentication/paths/~1v1~1tokens/post","summary":"Request a new token"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.sandbox.congruitcredit.com","description":"Sandbox Environment"},{"url":"https://api.congruitcredit.com","description":"Production Environment"}],"schemaId":"schema_12","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_12"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Token created","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_13"}},"schemaId":"schema_13"},{"code":"400","description":"Parameter missing","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_14"}},"schemaId":"schema_14"},{"code":"401","description":"Invalid credentials","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_15"}},"schemaId":"schema_15"}],"pointer":"/paths/~1v1~1tokens/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_13","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_13"}}},{"code":"400","schemaId":"schema_14","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_14"}}},{"code":"401","schemaId":"schema_15","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_15"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/authentication/paths/~1v1~1tokens/post"}],"panels":[]}]},"httpPath":"/v1/tokens"},{"label":"Validate a bearer token","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/tokens/swagger/authentication/paths/~1v1~1tokens~1validate/post","routeSlug":"/openapi/tokens/swagger/authentication/paths/~1v1~1tokens~1validate/post","metadata":{"seo":{"title":"Validate a bearer token","description":"Validates whether a bearer token is valid and active. If this endpoint is reached, the token passed middleware validation and is valid."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Validate a bearer token","isWebhook":false,"pointer":"/paths/~1v1~1tokens~1validate/post","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Validate a bearer token","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Validates whether a bearer token is valid and active. If this endpoint is reached, the token passed middleware validation and is valid."},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer"}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Authorization","in":"header","schemaId":"schema_16","description":"Bearer token to validate (required by middleware)","required":true}],"pointer":"/paths/~1v1~1tokens~1validate/post/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v1/tokens/validate","servers":[{"url":"https://api.sandbox.congruitcredit.com","description":"Sandbox Environment"},{"url":"https://api.congruitcredit.com","description":"Production Environment"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Authorization","in":"header","required":true,"schemaId":"schema_16"}],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer"}],"scopes":[]}],"responseCodes":["200","401"],"pointer":"/v1/tokens/validate","href":"authentication/paths/~1v1~1tokens~1validate/post","summary":"Validate a bearer token"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.sandbox.congruitcredit.com","description":"Sandbox Environment"},{"url":"https://api.congruitcredit.com","description":"Production Environment"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Token is valid","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_17"}},"schemaId":"schema_17"},{"code":"401","description":"Token is invalid"}],"pointer":"/paths/~1v1~1tokens~1validate/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_17","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_17"}}},{"code":"401"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/authentication/paths/~1v1~1tokens~1validate/post"}],"panels":[]}]},"httpPath":"/v1/tokens/validate"}],"content":{"contentType":"group","meta":{"name":"Authentication"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Authentication","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v1/tokens","summary":"Request a new token","prefix":{"name":"post","color":"post"},"badges":[],"link":"/authentication/paths/~1v1~1tokens/post","deprecated":false},{"title":"/v1/tokens/validate","summary":"Validate a bearer token","prefix":{"name":"post","color":"post"},"badges":[],"link":"/authentication/paths/~1v1~1tokens~1validate/post","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"schema_12":{"kind":"json-schema","data":{"type":"object","properties":{"token":{"type":"object","properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"}},"required":["client_id","client_secret"]}},"required":["token"]},"id":"schema_12"},"schema_13":{"kind":"json-schema","data":{"type":"object","properties":{"token":{"type":"string","description":"The Bearer access token"},"expires_at":{"type":"integer","description":"Unix epoch timestamp (seconds) when the token expires"},"expires_in":{"type":"integer","description":"Number of seconds until the token expires"},"token_type":{"type":"string","description":"The type of token (always Bearer)"}},"required":["token","expires_at","expires_in","token_type"]},"id":"schema_13"},"schema_14":{"kind":"json-schema","data":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"id":"schema_14"},"schema_15":{"kind":"json-schema","data":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},"id":"schema_15"},"schema_16":{"kind":"json-schema","data":{"type":"string"},"id":"schema_16"},"schema_17":{"kind":"json-schema","data":{"type":"object","properties":{"valid":{"type":"boolean"},"message":{"type":"string"}},"required":["valid","message"]},"id":"schema_17"}},"exampleStore":{},"securitySchemeStore":{"bearerAuth":{"id":"bearerAuth","type":"http","scheme":"bearer"}},"servers":[{"url":"https://api.sandbox.congruitcredit.com","description":"Sandbox Environment"},{"url":"https://api.congruitcredit.com","description":"Production Environment"}],"specType":"openapi"},"options":{"mockServer":{"off":true},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/openapi/tokens/swagger.json?download"},{"url":"/_bundle/openapi/tokens/swagger.yaml?download"}],"excludeFromSearch":false,"replayFeatures":{"graphql":false},"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Tokens API"}},"baseSlug":"/openapi/tokens/swagger","routesMapping":{}}