/** * This file was auto-generated by openapi-typescript. * Do not make direct changes to the file. */ export interface paths { "/token": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Get or renew your access tokens * @description Get or renew your access token. */ post: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": components["schemas"]["AuthTokenRequest"]; }; }; responses: { /** @description The operation was successful */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AuthTokenResponse"]; }; }; }; }; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; } export type webhooks = Record; export interface components { schemas: { /** * @example { * "api_key": "MZRODUyNTA4.TMVfZC953jPorAiytA_VIrYIETUE1S7JKT0UxSDdKKjQ=" * } */ AuthTokenRequest: { /** * @description The API key used for authentication. * :::info * Include this key in your request to obtain your **new** `access_token` for the first time. * ::: */ api_key?: string; /** * @description The token obtained during the initial authentication using your API key. * :::info * Include the `refresh_token` in your request to **renew** your `access_token`. * ::: */ refresh_token?: string; /** * @description The unique identifier for your organization. * :::info * Include the `organization_id` in your request to **renew** your `access_token`. * ::: */ organization_id?: string; }; /** * @example { * "refresh_token": "eyJjdHki...", * "access_token": "eyJraWQi...", * "organization_id": 13948787 * } */ AuthTokenResponse: { /** @description the short-lived Bearer token that you need to pass on API calls. */ access_token: string; /** @description A long-lived token that you can use to renew access tokens. */ refresh_token?: string; /** @description The unique identifier for your organization. */ organization_id: number; }; }; responses: never; parameters: never; requestBodies: never; headers: never; pathItems: never; } export type $defs = Record; export type operations = Record;