Skip to main content
POST
/
apps
/
{provider}
/
connect
Connect app with credentials
curl --request POST \
  --url https://api.onecli.sh/v1/apps/{provider}/connect \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fields": {
    "api_key": "sk-..."
  },
  "connectionId": "<string>"
}
'
{
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key obtained from the dashboard or GET /user/api-key

Path Parameters

provider
string
required

App provider identifier (e.g., gmail, github, jira)

Body

application/json
fields
object
required

Credential fields required by the app

Example:
{ "api_key": "sk-..." }
connectionId
string

Reconnect an existing connection

Response

Connected

success
boolean