Pular para o conteúdo

Start a connector authorization

get /oauth/authorize

Starts the OAuth 2.0 authorization code flow that connects an AI assistant, such as Claude or ChatGPT, to a person’s Salesbud account. The client is identified by the URL of its client metadata document and must be one of the connector apps Salesbud accepts; redirect_uri must be listed in that document. PKCE is required, with the S256 method only. The browser is sent to the Salesbud consent page, where the person signs in, picks the workspace and authorizes; the consent page then redirects to redirect_uri with code, state and iss. A person who does not approve credentials gets a connection awaiting administrator approval.

Sem autenticação.

NomeTipoObrigatórioDescrição
response_typecodeSim—
client_idstring uriSimURL of the connector’s client metadata document.
redirect_uristring uriSimOne of the redirect URIs listed in the client metadata document.
code_challengestringSimBase64url SHA-256 of the PKCE code_verifier.
code_challenge_methodS256Sim—
statestringNãoReturned unchanged to redirect_uri.
resourcestring uriSimThe MCP endpoint the token is for, as the protected resource metadata names it.
scopestringNãoSpace-separated scopes. Unknown scopes are ignored. Omitted or empty, the connection asks for every scope; the token then carries the ones the person can use in Salesbud.
Terminal window
curl -i "https://api.salesbud.com.br/oauth/authorize?response_type=code&client_id=...&redirect_uri=...&code_challenge=...&code_challenge_method=S256&state=...&resource=https://api.salesbud.com.br/mcp"
StatusDescrição
302Redirect to the Salesbud consent page, or back to redirect_uri with an OAuth error (invalid_request) once redirect_uri has been validated.
400HTML error page, with no redirect, when client_id is not an accepted connector app, its client metadata document cannot be verified, or redirect_uri is not registered for it.
429Client rate limit exceeded.
503A required audit or rate-limit dependency is unavailable.