{"openapi": "3.1.0", "info": {"title": "OAuth Token Endpoint", "version": "2", "description": "Exchange OAuth credentials for API access tokens and refresh expired access tokens with the token endpoint flows documented here."}, "servers": [{"url": "https://apimetrics.auth0.com"}], "components": {"securitySchemes": {}}, "paths": {"/oauth/token": {"post": {"summary": "Refresh Token Flow", "description": "If your APImetrics Access token has expired, use this refresh token flow to generate a new Access token.", "operationId": "refresh-token-flow", "parameters": [{"name": "Content-Type", "in": "header", "schema": {"type": "string", "default": "application/x-www-form-urlencoded"}}, {"name": "Accept", "in": "header", "schema": {"type": "string", "default": "application/json"}}], "requestBody": {"content": {"application/json": {"schema": {"type": "object", "properties": {"grant_type": {"type": "string", "default": "refresh_token"}, "refresh_token": {"type": "string", "description": "enter your refresh token here"}, "client_id": {"type": "string", "description": "enter your client_id"}, "client_secret": {"type": "string", "description": "enter your client_secret"}}}}}}, "responses": {"200": {"description": "200", "content": {"application/json": {"examples": {"Result": {"value": "{\n  \"access_token\": \"w1B7kZf4v0o9YpL5Dq9T2h3sR5-gXw8C6-bYqF-vD9kS1P7mB1Z0V26_uA2eM1Y\",\n  \"refresh_token\": \"y2C8xZf5v0o9YpL5Dq9T2h3sR5-gXw8C6-bYqF-vD9kS1P7mB1Z0V26_uA2eM1Y\",\n  \"scope\": \"profile email offline_access\",\n  \"expires_in\": 1800,\n  \"token_type\": \"Bearer\"\n}"}}, "schema": {"type": "object", "properties": {"access_token": {"type": "string", "example": "w1B7kZf4v0o9YpL5Dq9T2h3sR5-gXw8C6-bYqF-vD9kS1P7mB1Z0V26_uA2eM1Y"}, "refresh_token": {"type": "string", "example": "y2C8xZf5v0o9YpL5Dq9T2h3sR5-gXw8C6-bYqF-vD9kS1P7mB1Z0V26_uA2eM1Y"}, "scope": {"type": "string", "example": "profile email offline_access"}, "expires_in": {"type": "integer", "example": 1800, "default": 0}, "token_type": {"type": "string", "example": "Bearer"}}}}}}, "400": {"description": "400", "content": {"application/json": {"examples": {"Result": {"value": "{\n  \"error_msg\": \"invalid_request\", \n  \"error\": 400\n}"}}, "schema": {"type": "object", "properties": {"error_msg": {"type": "string", "example": "invalid_request"}, "error": {"type": "integer", "example": 400, "default": 0}}}}}}}, "deprecated": false, "security": []}}}, "x-readme": {"headers": [{"key": "Content-Type", "value": "application/x-www-form-urlencoded"}, {"key": "Accept", "value": "application/json"}], "explorer-enabled": false, "proxy-enabled": false}, "x-readme-fauxas": true}