IntegrationsStart provider OAuthpost

Start provider OAuth

Returns the upstream authorization URL the user must visit to grant access to the selected provider.

curl -X POST "https://api.textmine.com/v3/integrations/notion/authorize" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (`tm_<key>`)"
{
  "providerId": "notion",
  "authorizationUrl": "example_string"
}
POST
/v3/integrations/{providerId}/authorize
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (`tm_<key>`)
Bearer Tokenstring
Required

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.
path
providerIdstring
Required

Provider ID.

Options: notion, google-drive, sharepoint
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (tm_<key>). Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Path Parameters

providerIdstring
Required

Provider ID.

Allowed values:notiongoogle-drivesharepoint

Responses

providerIdstring

Canonical provider ID used in paths, JSON bodies, and MCP tool parameters.

Allowed values:notiongoogle-drivesharepoint
authorizationUrlstring

Open this URL in the user browser to complete provider OAuth.