mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-04 09:25:15 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
	"operationId": "requestToken",
 | 
						|
	"summary": "Request a new access token from credentials",
 | 
						|
	"tags": ["tokens"],
 | 
						|
	"requestBody": {
 | 
						|
		"description": "Credentials Payload",
 | 
						|
		"required": true,
 | 
						|
		"content": {
 | 
						|
			"application/json": {
 | 
						|
				"schema": {
 | 
						|
					"additionalProperties": false,
 | 
						|
					"properties": {
 | 
						|
						"identity": {
 | 
						|
							"minLength": 1,
 | 
						|
							"type": "string",
 | 
						|
							"example": "me@example.com"
 | 
						|
						},
 | 
						|
						"scope": {
 | 
						|
							"minLength": 1,
 | 
						|
							"type": "string",
 | 
						|
							"enum": ["user"],
 | 
						|
							"example": "user"
 | 
						|
						},
 | 
						|
						"secret": {
 | 
						|
							"minLength": 1,
 | 
						|
							"type": "string",
 | 
						|
							"example": "bigredhorsebanana"
 | 
						|
						}
 | 
						|
					},
 | 
						|
					"required": ["identity", "secret"],
 | 
						|
					"type": "object"
 | 
						|
				},
 | 
						|
				"example": {
 | 
						|
					"identity": "me@example.com",
 | 
						|
					"secret": "bigredhorsebanana"
 | 
						|
				}
 | 
						|
			}
 | 
						|
		}
 | 
						|
	},
 | 
						|
	"responses": {
 | 
						|
		"200": {
 | 
						|
			"content": {
 | 
						|
				"application/json": {
 | 
						|
					"examples": {
 | 
						|
						"default": {
 | 
						|
							"value": {
 | 
						|
								"expires": "2025-02-04T20:40:46.340Z",
 | 
						|
								"token": "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.ey...xaHKYr3Kk6MvkUjcC4"
 | 
						|
							}
 | 
						|
						}
 | 
						|
					},
 | 
						|
					"schema": {
 | 
						|
						"$ref": "../../components/token-object.json"
 | 
						|
					}
 | 
						|
				}
 | 
						|
			},
 | 
						|
			"description": "200 response"
 | 
						|
		}
 | 
						|
	}
 | 
						|
}
 |