FuseWorks
  • GETTING STARTED
    • An Overview
    • QuickStart Guide
  • Deep Dives
    • Scopes
    • Webhooks
    • Bundle Create
  • API References
    • Session
    • Bundle
    • Customer
    • Document
    • Tenant
  • Resources
    • OpenApi Spec
  • Swagger
  • Integrate With Us
  • Meet With Us
Powered by GitBook
On this page
Export as PDF
  1. API References

Session

Create and manage OAuth 2.0 Tokens

PreviousBundle CreateNextBundle

Last updated 1 month ago

  • GETOAuthRegister
  • POSTOAuthGetToken
  • POSTOAuthRefreshToken
  • POSTOAuthTokenRevoke

OAuthRegister

get

Register for oauth

Authorizations
Query parameters
response_typestring | nullableRequired
client_idstring | nullableRequired
redirect_uristring | nullableRequired
scopestring | nullableOptionalDefault: ""
statestring | nullableOptionalDefault: ""
realmstring | nullableOptionalDefault: realm
Responses
302
Redirects to the authorization provider
application/json
Responsestring
400
Error Message
application/json
get
GET /api/Session/OAuthRegister HTTP/1.1
Host: api.fuse.work
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
text

OAuthGetToken

post

Exchange a request for a token

Authorizations
Body
one of | nullableOptional
Responses
200
Token exchange response
application/json
400
Error Message
application/json
post
POST /api/Session/OAuthGetToken HTTP/1.1
Host: api.fuse.work
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 99

{
  "grant_type": "text",
  "code": "text",
  "client_id": "text",
  "client_secret": "text",
  "redirect_uri": "text"
}
{
  "token_type": "text",
  "access_token": "text",
  "refresh_token": "text",
  "expires_in": "2025-06-15T12:32:48.561Z",
  "refresh_token_expires_in": "2025-06-15T12:32:48.561Z",
  "default_tenant_id": "text"
}

OAuthRefreshToken

post

Refresh a token

Authorizations
Body
one of | nullableOptional
Responses
200
Token refresh response
application/json
400
Error Message
application/json
post
POST /api/Session/OAuthRefreshToken HTTP/1.1
Host: api.fuse.work
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 101

{
  "grant_type": "text",
  "refresh_token": "text",
  "client_id": "text",
  "client_secret": "text",
  "scope": "text"
}
{
  "token_type": "text",
  "access_token": "text",
  "refresh_token": "text",
  "expires_in": "2025-06-15T12:32:48.561Z",
  "refresh_token_expires_in": "2025-06-15T12:32:48.561Z",
  "default_tenant_id": "text"
}

OAuthTokenRevoke

post

Revoke a token

Authorizations
Body
one of | nullableOptional
Responses
200
Token refresh response
application/json
400
Error Message
application/json
post
POST /api/Session/OAuthTokenRevoke HTTP/1.1
Host: api.fuse.work
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 43

{
  "client_id": "text",
  "refresh_token": "text"
}
{
  "token_type": "text",
  "access_token": "text",
  "refresh_token": "text",
  "expires_in": "2025-06-15T12:32:48.561Z",
  "refresh_token_expires_in": "2025-06-15T12:32:48.561Z",
  "default_tenant_id": "text"
}