OAuth Client
How to use OAuth Client in Integrations & API Docs: access, working steps, fields, related records and troubleshooting.
Purpose and access
Use the API documentation at api.nexcommand.ai, obtain the required authorized credentials and use the deployment-specific service URLs. SaaS tenants and on-premises installations must retain their own endpoints and access boundaries.
This page is a record page in System Admin → Integrations & API Docs. Use the link above to open the configured destination; permissions are checked by the destination service.
Before you start
Prepare the required information: Default Redirect URI, App Name (Client Name), Scopes.
Confirm the company, party, dates, units and source references that apply. Select existing links carefully and check for an existing record before creating a duplicate.
Working steps
- Open OAuth Client from System Admin → Integrations & API Docs, or use ERP Search.
- Filter the list and open the relevant record. To add a record, use Add/New when your role provides that action.
- Complete the editable fields described below. Required fields and validation conditions must be satisfied; read-only values are set by the system or their source records.
- Add the required child rows. Review each row’s identifiers, linked records and values, using the child-table field reference below.
- Save the record and address validation messages. Reload and verify the saved values and relationships.
- Use any additional workflow actions only when the record and your role provide them. Saving this record does not automatically complete a related transaction or external action.
Field reference
These fields come from the installed ERP definition. Hidden fields and password inputs are omitted. Additional conditions, custom scripts and workflow rules can make a field required or read-only in a particular context.
| Field | Type / behavior | How to use it |
|---|---|---|
Client IDclient_id | Data Optional · Read-only | Enter the identifier or short text requested by the label. Preserve external reference numbers accurately. |
Allowed Rolesallowed_roles | Table MultiSelect Optional | Select the permitted linked entries; the stored rows associate those records with this document. Linked record: OAuth Client Role |
Client Secretclient_secret | Data Optional · Read-only | Enter the identifier or short text requested by the label. Preserve external reference numbers accurately. |
Default Redirect URIdefault_redirect_uri | Data Required | Enter the identifier or short text requested by the label. Preserve external reference numbers accurately. |
Skip Authorizationskip_authorization | Check Optional | If checked, users will not see the Confirm Access dialog. |
App Name (Client Name)app_name | Data Required | Enter the identifier or short text requested by the label. Preserve external reference numbers accurately. |
Scopesscopes | Text Required | A list of resources which the Client App will have access to after the user allows it. e.g. project |
Redirect URIsredirect_uris | Text Optional | URIs for receiving authorization code once the user allows access, as well as failure responses. Typically a REST endpoint exposed by the Client App. e.g. http://hostname/api/method/frappe.integrations.oauth2_logins.login_via_facebook |
Client URIclient_uri | Data Optional | URL of a web page providing information about the client. |
Software IDsoftware_id | Data Optional | Unique ID assigned by the client developer used to identify the client software to be dynamically registered. Should remain same across multiple versions or updates of the software. |
TOS URItos_uri | Data Optional | URL that points to a human-readable terms of service document for the client. Should be shown to end-user before authorizing. |
Contactscontacts | Small Text Optional | New lines separated list of strings representing ways to contact people responsible for this client, typically email addresses. |
Logo URIlogo_uri | Data Optional | URL that references a logo for the client. |
Software Versionsoftware_version | Data Optional | A version identifier string for the client software. The value of the should change on any update of the client software with the same Software ID. |
Policy URIpolicy_uri | Data Optional | URL that points to a human-readable policy document for the client. Should be shown to end-user before authorizing. |
Grant Typegrant_type | Select Optional | Choose one of the configured list values. Status fields may be controlled by the record workflow.Available choices
|
Token Endpoint Auth Methodtoken_endpoint_auth_method | Select Optional | Value of "None" implies a public client. In such a case Client Secret is not given to the client and token exchange makes use of PKCE.Available choices
|
Response Typeresponse_type | Select Optional | Choose one of the configured list values. Status fields may be controlled by the record workflow.Available choices
|
Child tables
Allowed Roles — child-row fields
| Field | Type / behavior | How to use it |
|---|---|---|
Rolerole | Link Optional | Choose an existing linked record. Check its company and ownership; typing a label alone does not create a new relationship. Linked record: Role |
Troubleshooting
- Not permitted: verify the account, role and source-document permission. Do not share an administrator login.
- Missing record or address: inspect the relevant Link or Dynamic Link fields; a matching title alone does not establish a relationship.
- Cannot save or change status: review required fields, read-only values, document status and the configured approval transition.
- Unexpected report or portal result: review company/date filters, source-document submission and the approved party or Employee link.