Volver al catálogo

Mastra

mastra

Mastra provides Platform management and regional hosted observability APIs for AI agent projects, deployments, feedback, and metrics.

Acciones
35
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (35)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Add Server DomainMASTRA_ADD_SERVER_DOMAINAcción

Add a custom domain to a hosted Mastra Server project and return its required DNS records.

Parámetros de entrada

  • domainstringObligatorio

    Custom domain to add to the Server project.

  • project_idstringObligatorio

    Hosted Server project ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Analyze FeedbackMASTRA_ANALYZE_FEEDBACKAcción

Calculate an aggregate, grouped breakdown, time series, or percentile series over numeric Mastra feedback without creating data.

Parámetros de entrada

  • filtersobject

    Additional documented feedback filters.

  • analysisstringObligatorioenum

    Feedback calculation to perform.

    aggregatebreakdowntimeseriespercentiles
  • group_bystring[]

    Grouping fields; required for breakdown and optional for timeseries.

  • intervalstringenum

    Bucket interval for timeseries and percentiles.

    1m5m15m1h1d
  • project_idstring

    Limit observability results to one Mastra project; omit for all accessible projects.

  • aggregationstringenum

    Aggregation required for aggregate, breakdown, and timeseries.

    sumavgminmaxcountcount_distinctlast
  • percentilesnumber[]

    Percentile fractions from 0 through 1, valid only for percentiles.

  • feedback_typestringObligatorio

    Feedback type to analyze.

  • compare_periodstringenum

    Period comparison, valid only for aggregate.

    previous_periodprevious_dayprevious_week
  • feedback_sourcestring

    Optional feedback source to analyze.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Analyze MetricsMASTRA_ANALYZE_METRICSAcción

Calculate an aggregate, grouped breakdown, time series, or percentile series over hosted Mastra metrics without creating data.

Parámetros de entrada

  • limitinteger

    Maximum grouped results; valid only for breakdown.

  • filtersobject

    Optional documented filters applied to matching metric records.

  • analysisstringObligatorioenum

    Metric calculation to perform.

    aggregatebreakdowntimeseriespercentiles
  • group_bystring[]

    Dimensions or label keys to group by; required for breakdown and optional for timeseries.

  • intervalstringenum

    Time bucket; required for timeseries and percentiles.

    1m5m15m1h1d
  • project_idstring

    Limit results to one Mastra project; omit to query all projects available to the token's organization.

  • aggregationstringenum

    Aggregation to apply; required for aggregate, breakdown, and timeseries.

    sumavgminmaxcountcount_distinctlast
  • percentilesnumber[]

    Percentile fractions from 0 through 1; required only for percentiles.

  • metric_namesstring[]Obligatorio

    Metric names to analyze. Percentiles requires exactly one; other analyses accept one or more.

  • compare_periodstringenum

    Compare an aggregate with the previous filter-sized period, day, or week. Previous period requires filter start and end timestamps.

    previous_periodprevious_dayprevious_week
  • distinct_columnstringenum

    Documented metric column to count; required only with count_distinct.

    entityTypeentityNameparentEntityTypeparentEntityNamerootEntityTyperootEntityNamenameprovidermodelenvironmentexecutionSourceserviceName+2
  • order_directionstringenum

    Sort grouped values; valid only for breakdown.

    ASCDESC

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Cancel Server DeploymentMASTRA_CANCEL_SERVER_DEPLOYAcción

Cancel a queued or in-progress Mastra hosted Server deployment.

Parámetros de entrada

  • deploy_idstringObligatorio

    Server deployment ID to cancel.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Confirm Deploy UploadMASTRA_CONFIRM_DEPLOY_UPLOADAcción

Confirm that a deployment ZIP has already been uploaded to the signed URL returned by Create Deployment Upload. This action does not upload the ZIP. It triggers the Studio or Server build-and-deploy pipeline, so call it only after the separate signed-URL PUT succeeds.

Parámetros de entrada

  • deploy_idstringObligatorio

    Deployment ID returned by Create Deployment Upload.

  • deploy_typestringObligatorioenum

    Whether the deployment belongs to the Studio or hosted Server surface.

    studioserver

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create API TokenMASTRA_CREATE_API_TOKENAcción

Create a Mastra organization API token. The response exposes the usable secret exactly once because that is the purpose of this operation. Store it securely immediately; do not log, share, or commit it.

Parámetros de entrada

  • namestringObligatorio

    Human-readable name for the new API token.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Deployment UploadMASTRA_CREATE_DEPLOY_UPLOADAcción

Create a legacy Mastra Studio or hosted Server deployment upload reservation. This action does not upload the artifact or start the deploy pipeline. When upload_url is returned, upload the ZIP bytes directly to it with PUT and Content-Type application/zip, then call Confirm Deploy Upload with the returned deployment ID. env_vars may contain secrets, and upload_url is a sensitive, short-lived signed URL granting temporary upload access; do not log, persist, share, or expose either value.

Parámetros de entrada

  • env_varsobject

    Optional environment variables to merge over values stored on the project. Values may be secrets; do not log, persist, share, or expose them.

  • git_branchstring

    Optional Git branch metadata for Studio deploys; unsupported for Server deploys.

  • project_idstring

    Target project ID. Required for Server deploys and optional for Studio deploys.

  • deploy_typestringObligatorioenum

    Whether to create a legacy Studio or hosted Server deployment.

    studioserver
  • project_namestring

    Optional target project name.

  • artifact_bytesinteger

    Optional non-negative integer size of the ZIP artifact in bytes.

  • mastra_versionstring

    Optional Mastra version metadata for Studio deploys; unsupported for Server deploys.

  • factory_enabledboolean

    Optional Server-only flag that enables Mastra Factory deployment behavior.

  • disable_platform_observabilityboolean

    Whether to disable Mastra Platform observability for this deployment.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Server ProjectMASTRA_CREATE_SERVER_PROJECTAcción

Create a hosted Mastra Server project. This provisions hosted infrastructure and may trigger usage-metered compute charges.

Parámetros de entrada

  • namestringObligatorio

    Name for the new hosted Mastra Server project.

  • regionstringenum

    Deployment region. Omit to use Mastra's platform default.

    euus
  • factory_enabledboolean

    Whether to provision Mastra Factory backing.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Studio ProjectMASTRA_CREATE_STUDIO_PROJECTAcción

Create a Mastra Studio project.

Parámetros de entrada

  • namestringObligatorio

    Name for the new Mastra project.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete ProjectMASTRA_DELETE_PROJECTAcción

Permanently delete a Mastra Studio project and all its deployments, or a hosted Server project and its provisioned resources.

Parámetros de entrada

  • project_idstringObligatorio

    Mastra project ID to delete.

  • project_typestringObligatorioenum

    Project surface to delete: Studio or hosted Server.

    studioserver

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Discover MetricsMASTRA_DISCOVER_METRICSAcción

Discover metric names, labels, and shared observability dimensions without creating data.

Parámetros de entrada

  • limitinteger

    Positive result limit for metric names or label values.

  • prefixstring

    Prefix for metric names or label values.

  • discoverystringObligatorioenum

    Metric or shared observability metadata to discover.

    nameslabel_keyslabel_valuesentity_typesentity_namesservice_namesenvironmentstags
  • label_keystring

    Label key for value discovery.

  • project_idstring

    Limit discovery to one Mastra project.

  • entity_typestringenum

    Optional entity type for entity-name or tag discovery.

    agentscorerrag_ingestiontrajectoryinput_processorinput_step_processoroutput_processoroutput_step_processortool_result_processorworkflow_steptoolmcp_server+3
  • metric_namestring

    Metric name for label discovery.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Authentication ContextMASTRA_GET_AUTH_CONTEXTAcción

Return the user, organization, role, and authentication type associated with the connected Mastra API key.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get DeploymentMASTRA_GET_DEPLOYAcción

Get the status and details of one Mastra Studio or hosted Server deployment.

Parámetros de entrada

  • deploy_idstringObligatorio

    Mastra deployment ID returned in project details.

  • deploy_typestringObligatorioenum

    Whether the deployment belongs to the Studio or hosted Server surface.

    studioserver

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Deployment LogsMASTRA_GET_DEPLOY_LOGSAcción

Get logs for one Mastra Studio or hosted Server deployment; Studio calls may limit the number of recent lines.

Parámetros de entrada

  • deploy_idstringObligatorio

    Mastra deployment ID whose logs to retrieve.

  • tail_linesinteger

    Number of recent Studio log lines to return; omit to use the provider default. Server deployment logs do not support this selector.

  • deploy_typestringObligatorioenum

    Whether the deployment belongs to the Studio or hosted Server surface.

    studioserver

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get ProjectMASTRA_GET_PROJECTAcción

Get one Mastra Studio or hosted Server project and its deployment history.

Parámetros de entrada

  • project_idstringObligatorio

    Mastra project ID returned by List Projects.

  • project_typestringObligatorioenum

    Whether the project belongs to the Studio or hosted Server surface.

    studioserver

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Server Environment VariablesMASTRA_GET_SERVER_ENVIRONMENT_VARIABLESAcción

SENSITIVE: Get environment variables for a hosted Mastra Server project. This returns plaintext secret values; never log, persist, or expose the response.

Parámetros de entrada

  • project_idstringObligatorio

    Hosted Server project ID returned by List Projects.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Server Runtime LogsMASTRA_GET_SERVER_RUNTIME_LOGSAcción

Get current runtime log records for a hosted Mastra Server project.

Parámetros de entrada

  • project_idstringObligatorio

    Hosted Server project ID returned by List Projects.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Invite Organization MemberMASTRA_INVITE_MEMBERAcción

Send an invitation to join the connected Mastra organization with a member or admin role. The connected account must have an admin role.

Parámetros de entrada

  • rolestringObligatorioenum

    Organization role to grant when the invitation is accepted.

    memberadmin
  • emailstringObligatorioemail

    Email address to invite to the organization.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List API TokensMASTRA_LIST_API_TOKENSAcción

List metadata for Mastra organization API tokens. Returned token values are obfuscated identification previews, not usable secrets.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List FeedbackMASTRA_LIST_FEEDBACKAcción

List hosted Mastra feedback records with page or durable delta continuation.

Parámetros de entrada

  • pageinteger

    Zero-based page for the first page-mode call.

  • tagsstring[]

    Require all of these tags.

  • cursorstring

    Opaque continuation returned by the previous call.

  • run_idstring

    Match run ID.

  • span_idstring

    Match one span ID.

  • user_idstring

    Match human end-user ID.

  • trace_idstring

    Match one trace ID.

  • page_sizeinteger

    Records or updates to return (1-100).

  • thread_idstring

    Match thread ID.

  • timestampobject

    Feedback time range.

  • project_idstring

    Limit results to one Mastra project.

  • request_idstring

    Match request ID.

  • session_idstring

    Match session ID.

  • entity_namestring

    Match entity name.

  • entity_typestringenum

    Match entity type.

    agentscorerrag_ingestiontrajectoryinput_processorinput_step_processoroutput_processoroutput_step_processortool_result_processorworkflow_steptoolmcp_server+3
  • environmentstring

    Match environment.

  • resource_idstring

    Match resource ID.

  • service_namestring

    Match service name.

  • experiment_idstring

    Match experiment or eval run ID.

  • feedback_typeany

    Match one or more feedback types.

  • review_statusstringenum

    Match review status.

    needs-reviewreviewed
  • sort_directionstringenum

    Page-mode timestamp sort direction.

    ASCDESC
  • feedback_sourcestring

    Match one feedback source.

  • organization_idstring

    Match organization ID.

  • pagination_modestringenum

    Use page browsing or delta polling.

    pagedelta
  • execution_sourcestring

    Match execution source.

  • feedback_user_idstring

    Match the feedback author.

  • root_entity_namestring

    Match root entity name.

  • root_entity_typestringenum

    Match root entity type.

    agentscorerrag_ingestiontrajectoryinput_processorinput_step_processoroutput_processoroutput_step_processortool_result_processorworkflow_steptoolmcp_server+3
  • entity_version_idstring

    Match entity version ID.

  • parent_entity_namestring

    Match parent entity name.

  • parent_entity_typestringenum

    Match parent entity type.

    agentscorerrag_ingestiontrajectoryinput_processorinput_step_processoroutput_processoroutput_step_processortool_result_processorworkflow_steptoolmcp_server+3
  • root_entity_version_idstring

    Match root entity version ID.

  • parent_entity_version_idstring

    Match parent entity version ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Organization InvitationsMASTRA_LIST_INVITATIONSAcción

List all pending invitations for the connected Mastra organization.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Organization MembersMASTRA_LIST_MEMBERSAcción

List members of the connected Mastra organization, including their roles and membership status.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List MetricsMASTRA_LIST_METRICSAcción

List raw hosted Mastra metric records with page or durable delta continuation.

Parámetros de entrada

  • pageinteger

    Zero-based page for the first page-mode call.

  • cursorstring

    Opaque continuation returned by a previous call. Pass it back unchanged.

  • filtersobject

    Complete documented metric filters.

  • page_sizeinteger

    Page-mode perPage value (1-100).

  • project_idstring

    Limit results to one Mastra project.

  • delta_limitinteger

    Delta-mode limit (1-100).

  • sort_directionstringenum

    Timestamp sort direction in page mode. Mastra defaults to DESC.

    ASCDESC
  • pagination_modestringenum

    Use page for browsing or delta for incremental polling.

    pagedelta

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List OrganizationsMASTRA_LIST_ORGANIZATIONSAcción

List Mastra organizations available to the connected API-key bearer credential.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List ProjectsMASTRA_LIST_PROJECTSAcción

List Mastra Studio or hosted Server projects in the connected organization.

Parámetros de entrada

  • project_typestringObligatorioenum

    Project surface to list: Studio projects or hosted Server projects.

    studioserver

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Server DomainsMASTRA_LIST_SERVER_DOMAINSAcción

List custom domains configured for a hosted Mastra Server project.

Parámetros de entrada

  • project_idstringObligatorio

    Hosted Server project ID returned by List Projects.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Redeploy Server ProjectMASTRA_REDEPLOY_SERVER_PROJECTAcción

Trigger a new deployment for a hosted Mastra Server project. Redeployment starts deployment work and may trigger usage-metered compute charges.

Parámetros de entrada

  • project_idstringObligatorio

    Hosted Server project ID to redeploy.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Remove Organization MemberMASTRA_REMOVE_MEMBERAcción

Remove a member from the connected Mastra organization. This destructive operation requires an organization admin role.

Parámetros de entrada

  • member_idstringObligatorio

    Organization membership ID to remove.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Revoke API TokenMASTRA_REVOKE_API_TOKENAcción

Revoke a Mastra organization API token so it can no longer authenticate. This destructive operation cannot reveal or restore the revoked secret.

Parámetros de entrada

  • token_idstringObligatorio

    ID of the Mastra API token to revoke.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Revoke Organization InvitationMASTRA_REVOKE_INVITATIONAcción

Revoke a pending invitation to the connected Mastra organization. The connected account must have an admin role.

Parámetros de entrada

  • invitation_idstringObligatorio

    ID of the pending organization invitation to revoke.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Set Server Environment VariablesMASTRA_SET_SERVER_ENVIRONMENT_VARIABLESAcción

SENSITIVE SECRET MUTATION: Replace environment variables for a hosted Mastra Server project. Values are secrets; never log, persist, or expose them. This route does not restart the running service.

Parámetros de entrada

  • env_varsobjectObligatorio

    Complete map of environment variable names to secret values to store. Do not log, persist, or expose these values.

  • project_idstringObligatorio

    Hosted Server project ID returned by List Projects.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Set Server Environment Variables and RestartMASTRA_SET_SERVER_ENVIRONMENT_VARIABLES_AND_RESTARTAcción

SENSITIVE, IRREVERSIBLE RUNTIME OPERATION: Replace secret environment variables for a hosted Mastra Server project and immediately restart its running service. Never log, persist, or expose the secret values.

Parámetros de entrada

  • env_varsobjectObligatorio

    Complete map of environment variable names to secret values to store before restarting the service. Do not log, persist, or expose them.

  • project_idstringObligatorio

    Hosted Server project ID returned by List Projects.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Stop Server DeploymentMASTRA_STOP_SERVER_DEPLOYAcción

Stop a Mastra hosted Server deployment.

Parámetros de entrada

  • deploy_idstringObligatorio

    Server deployment ID to stop.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update Organization Member RoleMASTRA_UPDATE_MEMBER_ROLEAcción

Change an existing member's role in the connected Mastra organization. The connected account must have an admin role.

Parámetros de entrada

  • rolestringObligatorioenum

    New organization role for the member.

    memberadmin
  • member_idstringObligatorio

    Organization membership ID whose role to update.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Verify Project Ingest AccessMASTRA_VERIFY_PROJECT_INGEST_ACCESSAcción

Verify that the connected Mastra organization API key can ingest telemetry for one project without changing provider state.

Parámetros de entrada

  • project_idstringObligatorio

    Mastra project ID whose telemetry-ingest access to verify.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not