Create an OAuth provider credential
Creates a system.credential of kind: oauth_token carrying an upstream service’s OAuth client config — authorize URL, token URL, client_id, encrypted client_secret, upstream API base URL, and optional default scope. The resulting credential id is passed as credential_ref on subsequent POST /connections/install calls so multiple integrations of the same upstream (e.g. google.calendar + google.tasks) share one OAuth client and one stored secret instead of duplicating per-integration.
The client_secret is encrypted server-side under the connectionOauthToken HKDF domain (AES-256-GCM). Decryption only happens at the OAuth proxy + callback paths; the plaintext is never returned by any read path.
Tenant-scoped: the credential is created in the calling key’s tenant, and integrations within that tenant can reference it. Cross-tenant reuse is not supported — each tenant brings its own OAuth provider config.
Documentation Index
Fetch the complete documentation index at: https://docs.myme.so/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Pass an API key (marfa_k1_...) or OAuth access token (marfa_at_...)
Body
1 - 200204820481 - 5121 - 204820482048Response
Credential created. Returns the new credential's id for use as credential_ref on install.