> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prophecy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# M2M OAuth

> API properties for OAuth secrets

Properties for M2M OAuth secrets are specified in the `properties` object when creating or updating a secret. OAuth secrets store OAuth 2.0 client credentials including client ID, client secret, and authorization URL.

## Properties

<ParamField body="name" type="string" required>
  The key name for the secret. This name is used to reference the secret in connections and other
  resources.
</ParamField>

<ParamField body="value" type="object" required>
  OAuth 2.0 credentials object containing client authentication details.

  <Expandable title="value properties">
    <ParamField body="value.clientId" type="string" required>
      The OAuth 2.0 client identifier. This is the public identifier for your OAuth application.
    </ParamField>

    <ParamField body="value.clientSecret" type="string" required>
      The OAuth 2.0 client secret. This is the private credential used to authenticate your application.
    </ParamField>

    <ParamField body="value.authUrl" type="string" required>
      The authorization URL for the OAuth provider. This is the base URL where OAuth authentication requests are sent.
    </ParamField>

    <ParamField body="value.scope" type="string">
      OAuth 2.0 scope string specifying the permissions requested from the OAuth provider. Multiple scopes should be space-separated.
    </ParamField>
  </Expandable>
</ParamField>
