# Session

## GET /api/Session/OAuthRegister

>

```json
{"openapi":"3.0.0","info":{"title":"FuseSign API","version":"v1"},"servers":[{"url":"https://api.fuse.work","description":"FuseSign API"}],"paths":{"/api/Session/OAuthRegister":{"get":{"tags":["Session"],"operationId":"ExternalApiExternalHandlersFeaturesSessionOAuthRegisterOAuthRegisterEndpoint","parameters":[{"name":"response_type","in":"query","required":true,"schema":{"type":"string","default":"code"}},{"name":"client_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"redirect_uri","in":"query","required":true,"schema":{"type":"string"}},{"name":"Scope","in":"query","required":true,"schema":{"type":"string"}},{"name":"State","in":"query","schema":{"type":"string","nullable":true}},{"name":"Realm","in":"query","schema":{"type":"string","nullable":true}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FastEndpointsErrorResponse"}}}}}}}},"components":{"schemas":{"FastEndpointsErrorResponse":{"type":"object","additionalProperties":false,"properties":{"StatusCode":{"type":"integer","format":"int32","default":400},"Message":{"type":"string","default":"One or more errors occurred!"},"Errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}}}}}
```

## POST /api/Session/OAuthGetToken

>

```json
{"openapi":"3.0.0","info":{"title":"FuseSign API","version":"v1"},"servers":[{"url":"https://api.fuse.work","description":"FuseSign API"}],"paths":{"/api/Session/OAuthGetToken":{"post":{"tags":["Session"],"operationId":"ExternalApiExternalHandlersFeaturesSessionOAuthGetTokenOAuthGetTokenEndpoint","requestBody":{"description":"","content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/ExternalApiExternalHandlersFeaturesSessionOAuthGetTokenOAuthGetTokenRequest"}},"application/json":{"schema":{"$ref":"#/components/schemas/ExternalApiExternalHandlersFeaturesSessionOAuthGetTokenOAuthGetTokenRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuseWebApiCoreModelsOAuthTokenResponse"}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FastEndpointsErrorResponse"}}}}}}}},"components":{"schemas":{"ExternalApiExternalHandlersFeaturesSessionOAuthGetTokenOAuthGetTokenRequest":{"type":"object","additionalProperties":false,"required":["grant_type","code","client_id","client_secret","redirect_uri"],"properties":{"grant_type":{"type":"string","default":"authorization_code","minLength":1},"code":{"type":"string","minLength":1},"client_id":{"type":"string","minLength":1},"client_secret":{"type":"string","minLength":1},"redirect_uri":{"type":"string","minLength":1}}},"FuseWebApiCoreModelsOAuthTokenResponse":{"type":"object","additionalProperties":false,"properties":{"token_type":{"type":"string","nullable":true},"access_token":{"type":"string","nullable":true},"refresh_token":{"type":"string","nullable":true},"expires_in":{"type":"string","format":"date-time"},"refresh_token_expires_in":{"type":"string","format":"date-time"},"default_tenant_id":{"type":"string","format":"guid"}}},"FastEndpointsErrorResponse":{"type":"object","additionalProperties":false,"properties":{"StatusCode":{"type":"integer","format":"int32","default":400},"Message":{"type":"string","default":"One or more errors occurred!"},"Errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}}}}}
```

## POST /api/Session/OAuthRefreshToken

>

```json
{"openapi":"3.0.0","info":{"title":"FuseSign API","version":"v1"},"servers":[{"url":"https://api.fuse.work","description":"FuseSign API"}],"paths":{"/api/Session/OAuthRefreshToken":{"post":{"tags":["Session"],"operationId":"ExternalApiExternalHandlersFeaturesSessionOAuthRefreshTokenOAuthRefreshTokenEndpoint","requestBody":{"description":"","content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/ExternalApiExternalHandlersFeaturesSessionOAuthRefreshTokenOAuthRefreshTokenRequest"}},"application/json":{"schema":{"$ref":"#/components/schemas/ExternalApiExternalHandlersFeaturesSessionOAuthRefreshTokenOAuthRefreshTokenRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FuseWebApiCoreModelsOAuthTokenResponse"}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FastEndpointsErrorResponse"}}}}}}}},"components":{"schemas":{"ExternalApiExternalHandlersFeaturesSessionOAuthRefreshTokenOAuthRefreshTokenRequest":{"type":"object","additionalProperties":false,"required":["grant_type","refresh_token","client_id","client_secret"],"properties":{"grant_type":{"type":"string","default":"refresh_token","minLength":1},"refresh_token":{"type":"string","minLength":1},"client_id":{"type":"string","minLength":1},"client_secret":{"type":"string","minLength":1}}},"FuseWebApiCoreModelsOAuthTokenResponse":{"type":"object","additionalProperties":false,"properties":{"token_type":{"type":"string","nullable":true},"access_token":{"type":"string","nullable":true},"refresh_token":{"type":"string","nullable":true},"expires_in":{"type":"string","format":"date-time"},"refresh_token_expires_in":{"type":"string","format":"date-time"},"default_tenant_id":{"type":"string","format":"guid"}}},"FastEndpointsErrorResponse":{"type":"object","additionalProperties":false,"properties":{"StatusCode":{"type":"integer","format":"int32","default":400},"Message":{"type":"string","default":"One or more errors occurred!"},"Errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}}}}}
```

## POST /api/Session/OAuthTokenRevoke

>

```json
{"openapi":"3.0.0","info":{"title":"FuseSign API","version":"v1"},"servers":[{"url":"https://api.fuse.work","description":"FuseSign API"}],"paths":{"/api/Session/OAuthTokenRevoke":{"post":{"tags":["Session"],"operationId":"ExternalApiExternalHandlersFeaturesSessionOAuthTokenRevokeOAuthTokenRevokeEndpoint","requestBody":{"description":"","content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/ExternalApiExternalHandlersFeaturesSessionOAuthTokenRevokeOAuthTokenRevokeRequest"}},"application/json":{"schema":{"$ref":"#/components/schemas/ExternalApiExternalHandlersFeaturesSessionOAuthTokenRevokeOAuthTokenRevokeRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/FastEndpointsErrorResponse"}}}}}}}},"components":{"schemas":{"ExternalApiExternalHandlersFeaturesSessionOAuthTokenRevokeOAuthTokenRevokeRequest":{"type":"object","additionalProperties":false,"required":["client_id","refresh_token"],"properties":{"client_id":{"type":"string","minLength":1},"refresh_token":{"type":"string","minLength":1}}},"FastEndpointsErrorResponse":{"type":"object","additionalProperties":false,"properties":{"StatusCode":{"type":"integer","format":"int32","default":400},"Message":{"type":"string","default":"One or more errors occurred!"},"Errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}}}}}
```
