Skip to main content
POST
/
v1
/
integrations
/
{integration_id}
/
execute
Execute integration feature
curl --request POST \
  --url https://api.incredible.one/v1/integrations/{integration_id}/execute \
  --header 'Content-Type: application/json' \
  --data '{
  "user_id": "<string>",
  "feature_name": "<string>",
  "inputs": {}
}'
{
  "success": true,
  "result": {
    "message_id": "abc123...",
    "status": "sent"
  },
  "integration_id": "gmail",
  "feature_name": "gmail_send_email",
  "user_id": "your_user_id"
}
integration_id
string
required
The unique identifier of the integration to execute the feature from
curl -X POST "https://api.incredible.one/v1/integrations/{integration_id}/execute" \
  -H "Content-Type: application/json" \
  -d '{"user_id": "your_user_id", "feature_name": "gmail_send_email", "inputs": {"recipient_email": "user@example.com", "body": "Hello from Incredible API!"}}'
{
  "success": true,
  "result": {
    "message_id": "abc123...",
    "status": "sent"
  },
  "integration_id": "gmail",
  "feature_name": "gmail_send_email",
  "user_id": "your_user_id"
}
{
  "error": "Feature not found",
  "available_features": ["gmail_send_email", "gmail_get_emails"]
}

Path Parameters

integration_id
string
required

The unique identifier of the integration

Body

application/json
user_id
string
required

The unique identifier of the user executing the feature

feature_name
string
required

The name of the feature/function to execute

inputs
object

The input parameters for the feature execution

Response

Feature executed successfully

success
boolean
required

Whether the feature execution was successful

integration_id
string
required

The ID of the integration that executed the feature

feature_name
string
required

The name of the feature that was executed

user_id
string
required

The ID of the user who executed the feature

result
object

The result data from the feature execution