Skip to main content
POST
/
credentials
/
oauth-provider
Create an OAuth provider credential
curl --request POST \
  --url https://api.example.com/credentials/oauth-provider \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "oauth_authorize_url": "<string>",
  "oauth_token_url": "<string>",
  "oauth_client_id": "<string>",
  "oauth_client_secret": "<string>",
  "upstream_base_url": "<string>",
  "oauth_default_scope": "<string>"
}
'
{
  "credential_id": "<string>"
}

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

Authorization
string
header
required

Pass an API key (marfa_k1_...) or OAuth access token (marfa_at_...)

Body

application/json
label
string
required
Required string length: 1 - 200
oauth_authorize_url
string<uri>
required
Maximum string length: 2048
oauth_token_url
string<uri>
required
Maximum string length: 2048
oauth_client_id
string
required
Required string length: 1 - 512
oauth_client_secret
string
required
Required string length: 1 - 2048
upstream_base_url
string<uri>
required
Maximum string length: 2048
oauth_default_scope
string
Maximum string length: 2048

Response

Credential created. Returns the new credential's id for use as credential_ref on install.

credential_id
string
required