Integration Instances
Integration instances materialize an integration for a specific actor, identity, or runtime configuration.
Integration Instances object
Attributes
object
Stringid
Stringstatus
Enumname
Stringdescription
StringNullablemetadata
ObjectNullableA key-value map
integration_id
Stringidentity_actor_id
StringNullableidentity_id
StringNullableimplementation
ObjectNullableproviders
Objectcreated_at
Dateupdated_at
Datearchived_at
DateNullable{"object": "integration.instance","status": "draft","metadata": {},"implementation": {"type": "magic_mcp_server"},"providers": [{"object": "integration.instance.provider","status": "active","metadata": {},"tool_filter": {"type": "allow_all"},"provider": {"object": "provider#preview","id": "pro_5gHjKlMnPqRsTuVw","name": "GitHub","description": "Connect to GitHub repositories, issues, and pull requests","slug": "github","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"integration_provider": {"object": "integration.provider#snapshot","provider_version": {"object": "integration.provider.version"},"status": "active","metadata": {},"tool_filter": {"type": "allow_all"},"provider": {"object": "provider#preview","id": "pro_5gHjKlMnPqRsTuVw","name": "GitHub","description": "Connect to GitHub repositories, issues, and pull requests","slug": "github","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"deployment": {"object": "provider.deployment#preview","id": "pde_1aBcDeFgHjKlMnPq","name": "Production","description": "Production deployment","metadata": {},"provider_id": "pro_5gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"auth_method": {"object": "provider.capabilities.auth_method","id": "pam_2mNpQrStUvWxYzAb","type": "oauth","key": "oauth2","name": "OAuth 2.0","description": "Authenticate using OAuth 2.0","capabilities": {},"input_schema": {"type": "json_schema","schema": {}},"output_schema": {"type": "json_schema","schema": {}},"scopes": [{"object": "provider.capabilities.auth_method.scope","id": "pams_8tUvWxYzAbCdEfGh","scope": "repo","name": "Repository Access","description": "Full control of private repositories"},{"object": "provider.capabilities.auth_method.scope","id": "pams_8tUvWxYzAbCdEfGh","scope": "repo","name": "Repository Access","description": "Full control of private repositories"}],"provider_id": "pro_5gHjKlMnPqRsTuVw","provider_specification_id": "psp_9gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"auth_credentials": {"object": "provider.auth_credentials","id": "par_4sTuVwXyZaBcDeFg","type": "oauth","status": "active","is_default": true,"is_managed": true,"name": "GitHub OAuth","description": "OAuth credentials for GitHub API","metadata": {},"provider_id": "pro_5gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"config": {"object": "provider.config#preview","id": "pcf_7dEfGhJkLmNpQrSt","name": "Production Config","description": "Configuration for production environment","metadata": {},"provider_id": "pro_5gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"}},"config": {"object": "provider.config#preview","id": "pcf_7dEfGhJkLmNpQrSt","name": "Production Config","description": "Configuration for production environment","metadata": {},"provider_id": "pro_5gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"auth_config": {"object": "provider.auth_config#preview","id": "pcf_7dEfGhJkLmNpQrSt","name": "Production Config","description": "Configuration for production environment","metadata": {},"provider_id": "pro_5gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"}},{"object": "integration.instance.provider","status": "active","metadata": {},"tool_filter": {"type": "allow_all"},"provider": {"object": "provider#preview","id": "pro_5gHjKlMnPqRsTuVw","name": "GitHub","description": "Connect to GitHub repositories, issues, and pull requests","slug": "github","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"integration_provider": {"object": "integration.provider#snapshot","provider_version": {"object": "integration.provider.version"},"status": "active","metadata": {},"tool_filter": {"type": "allow_all"},"provider": {"object": "provider#preview","id": "pro_5gHjKlMnPqRsTuVw","name": "GitHub","description": "Connect to GitHub repositories, issues, and pull requests","slug": "github","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"deployment": {"object": "provider.deployment#preview","id": "pde_1aBcDeFgHjKlMnPq","name": "Production","description": "Production deployment","metadata": {},"provider_id": "pro_5gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"auth_method": {"object": "provider.capabilities.auth_method","id": "pam_2mNpQrStUvWxYzAb","type": "oauth","key": "oauth2","name": "OAuth 2.0","description": "Authenticate using OAuth 2.0","capabilities": {},"input_schema": {"type": "json_schema","schema": {}},"output_schema": {"type": "json_schema","schema": {}},"scopes": [{"object": "provider.capabilities.auth_method.scope","id": "pams_8tUvWxYzAbCdEfGh","scope": "repo","name": "Repository Access","description": "Full control of private repositories"},{"object": "provider.capabilities.auth_method.scope","id": "pams_8tUvWxYzAbCdEfGh","scope": "repo","name": "Repository Access","description": "Full control of private repositories"}],"provider_id": "pro_5gHjKlMnPqRsTuVw","provider_specification_id": "psp_9gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"auth_credentials": {"object": "provider.auth_credentials","id": "par_4sTuVwXyZaBcDeFg","type": "oauth","status": "active","is_default": true,"is_managed": true,"name": "GitHub OAuth","description": "OAuth credentials for GitHub API","metadata": {},"provider_id": "pro_5gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"config": {"object": "provider.config#preview","id": "pcf_7dEfGhJkLmNpQrSt","name": "Production Config","description": "Configuration for production environment","metadata": {},"provider_id": "pro_5gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"}},"config": {"object": "provider.config#preview","id": "pcf_7dEfGhJkLmNpQrSt","name": "Production Config","description": "Configuration for production environment","metadata": {},"provider_id": "pro_5gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"},"auth_config": {"object": "provider.auth_config#preview","id": "pcf_7dEfGhJkLmNpQrSt","name": "Production Config","description": "Configuration for production environment","metadata": {},"provider_id": "pro_5gHjKlMnPqRsTuVw","created_at": "2025-09-15T10:30:00.000Z","updated_at": "2026-01-10T14:45:00.000Z"}}]}
List integration instances
Returns a paginated list of integration instances.
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalsearch
StringOptionalstatus
UnionOptionalid
UnionOptionalintegration_id
UnionOptionalprovider_id
UnionOptionalintegration_provider_id
UnionOptionalidentity_id
UnionOptionalidentity_credential_id
UnionOptionalidentity_actor_id
UnionOptionalprovider_deployment_id
UnionOptionalprovider_config_id
UnionOptionalprovider_auth_config_id
UnionOptionalsession_template_id
UnionOptionalcreated_at
ObjectOptionalFilter integration instance creation time by date range
updated_at
ObjectOptionalFilter integration instance last update time by date range
curl -X GET "https://api.metorial.com/integration-instances" \-H "Authorization: Bearer metorial_sk_..."
Get integration instance
Retrieves a specific integration instance.
URL Parameters
integration_instance_id
StringThe unique identifier for the integration_instance
curl -X GET "https://api.metorial.com/integration-instances/int_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create integration instance session template
Creates or updates the shared session template for a specific integration instance.
URL Parameters
integration_instance_id
StringThe unique identifier for the integration_instance
Request Body
name
StringOptionaldescription
StringOptionalmetadata
ObjectOptionalA key-value map
curl -X POST "https://api.metorial.com/integration-instances/int_Rm4Mnheq2bfEPhBhP7SY/session-template" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {}}'
Create integration instance session
Creates a session from the shared session template of a specific integration instance.
URL Parameters
integration_instance_id
StringThe unique identifier for the integration_instance
Request Body
name
StringOptionaldescription
StringOptionalmetadata
ObjectOptionalA key-value map
curl -X POST "https://api.metorial.com/integration-instances/int_Rm4Mnheq2bfEPhBhP7SY/session" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {}}'
Create integration instance
Creates a new integration instance.
Request Body
integration_id
Stringname
Stringdescription
StringOptionalmetadata
ObjectOptionalA key-value map
identity_actor_id
StringOptionalNullableidentity_id
StringOptionalNullableproviders
ObjectOptionalcurl -X POST "https://api.metorial.com/integration-instances" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"integration_id": "example_integration_id","name": "example_name","description": "example_description","metadata": {},"identity_actor_id": "example_identity_actor_id","identity_id": "example_identity_id","providers": {"provider_id": "example_provider_id","provider_config_id": "example_provider_config_id","provider_auth_config_id": "example_provider_auth_config_id","tool_filters": {"type": "example_type","keys": ["example_item"]},"is_override_tool_filter": false}}'
Update integration instance
Updates a specific integration instance.
URL Parameters
integration_instance_id
StringThe unique identifier for the integration_instance
Request Body
name
StringOptionaldescription
StringOptionalNullablemetadata
ObjectOptionalNullableA key-value map
identity_actor_id
StringOptionalNullableidentity_id
StringOptionalNullableproviders
ObjectOptionalcurl -X PATCH "https://api.metorial.com/integration-instances/int_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {},"identity_actor_id": "example_identity_actor_id","identity_id": "example_identity_id","providers": {"provider_id": "example_provider_id","provider_config_id": "example_provider_config_id","provider_auth_config_id": "example_provider_auth_config_id","tool_filters": {"type": "example_type","keys": ["example_item"]},"is_override_tool_filter": false}}'
Delete integration instance
Archives a specific integration instance.
URL Parameters
integration_instance_id
StringThe unique identifier for the integration_instance
curl -X DELETE "https://api.metorial.com/integration-instances/int_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."