Skip to content
docs/API reference/OAuthCredentialService

OAuthCredentialService

The OAuthCredentialService methods and their request and response messages.

Generated from oauth.proto. Every method is POST /rpc/engram.app.v1.OAuthCredentialService/<Method> with a JSON or protobuf body and an x-api-key header.

Method Request Response
BeginFlow BeginFlowRequest BeginFlowResponse
GetFlow GetFlowRequest GetFlowResponse
CancelFlow CancelFlowRequest CancelFlowResponse
ListCredentials ListCredentialsRequest ListCredentialsResponse
Disconnect DisconnectRequest DisconnectResponse
PutCredential PutCredentialRequest PutCredentialResponse
LookupRedirectFlow LookupRedirectFlowRequest LookupRedirectFlowResponse
BeginRedirectFlow BeginRedirectFlowRequest BeginRedirectFlowResponse
CompleteRedirectFlow CompleteRedirectFlowRequest CompleteRedirectFlowResponse
FetchSessionCredential FetchSessionCredentialRequest FetchSessionCredentialResponse
UpdateSessionCredential UpdateSessionCredentialRequest UpdateSessionCredentialResponse
Field Type
subject OAuthSubject
provider string
Field Type
flow OAuthFlow
verification_url string
user_code string
Field Type
subject OAuthSubject
provider string
spec RedirectOauthSpec
redirect_uri string
Field Type
flow OAuthFlow
authorize_url string
Field Type
subject OAuthSubject
flow_id string
Field Type
flow OAuthFlow
Field Type
subject OAuthSubject
provider string
flow_id string
code string
redirect_uri string
spec RedirectOauthSpec
Field Type
credential OAuthCredentialMeta
Field Type
subject OAuthSubject
provider string
expected_version int64
Field Type
credential OAuthCredentialMeta
Field Type
session_id string
broker_token string
Field Type
provider string
version int64
opaque_bundle bytes
Field Type
subject OAuthSubject
flow_id string
Field Type
flow OAuthFlow
Field Type
subject OAuthSubject
Field Type
credentials repeated OAuthCredentialMeta
Field Type
flow_id string
Field Type
subject OAuthSubject
provider string
status string
Field Type
display_name string (optional)
plan_type string (optional)
workspace_id string (optional)
workspace_name string (optional)
Field Type
provider string
version int64
connected bool
account OAuthAccountMetadata
created_at string
updated_at string
status string
expires_at string
subject_id string
Field Type
id string
provider string
status string
error_code string (optional)
expires_at string
updated_at string
Field Type
kind OauthSubjectKind
id string
Field Type
subject OAuthSubject
provider string
secret string
Field Type
credential OAuthCredentialMeta
Field Type
method string
host string
path string
body string
map map<string, string>
Field Type
from_token_response map<string, string>
probe RedirectMetadataProbe
Field Type
authorize_url string
token_url string
scopes repeated string
scope_delimiter string
extra_authorize_params map<string, string>
client_id_ref string
client_secret_ref string
pkce bool
metadata RedirectMetadataSpec
scopes_param string
grant_path string
Field Type
session_id string
broker_token string
expected_version int64
opaque_bundle bytes
Field Type
provider string
version int64
opaque_bundle bytes
Value Number
OAUTH_SUBJECT_KIND_UNSPECIFIED 0
OAUTH_SUBJECT_KIND_USER 1
OAUTH_SUBJECT_KIND_CONNECTOR 2
OAUTH_SUBJECT_KIND_MCP 3
OAUTH_SUBJECT_KIND_USER_CONNECTOR 4