Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 2.56 KB

File metadata and controls

27 lines (21 loc) · 2.56 KB

PostOAuthTokenResponse

Token exchange successful

Example Usage

import { PostOAuthTokenResponse } from "@midday-ai/sdk/models/operations";

let value: PostOAuthTokenResponse = {
  accessToken: "mid_access_token_abcdef123456789",
  tokenType: "Bearer",
  expiresIn: 3600,
  refreshToken: "mid_refresh_token_abcdef123456789",
  scope: "transactions.read invoices.read",
};

Fields

Field Type Required Description Example
accessToken string ✔️ Access token for API requests mid_access_token_abcdef123456789
tokenType operations.TokenType ✔️ Token type, always 'Bearer' Bearer
expiresIn number ✔️ Token expiration time in seconds 3600
refreshToken string ✔️ Refresh token for obtaining new access tokens mid_refresh_token_abcdef123456789
scope string ✔️ Space-separated list of granted scopes transactions.read invoices.read