跳转到主要内容
账户 slug 和项目 slug 用于在 Tenderly API URL 中标识项目:
API URL
账户 slug 标识拥有该项目的账户,项目 slug 标识该账户中的项目。Slug 可能与显示名称不同:下图中名为 Demo 的项目,其 slug 为 demo。

在项目 Settings 中查找 slug

  1. 在 Tenderly Dashboard 中打开项目,然后在左侧边栏中选择 Settings。
  2. 在 Project name 下方,URL 一行显示 https://dashboard.tenderly.co/{account_slug}/{project_slug}。路径的最后两段即为账户 slug 和项目 slug。
  3. 要复制已填入两个 slug 的 API URL,请点击 Project Access Tokens 旁边的 Copy API URL。
项目 Settings 页面:Project name 下方的项目 URL 和 Copy API URL 按钮 在此示例中,账户 slug 为 Tenderly,项目 slug 为 demo,Copy API URL 复制的是 https://api.tenderly.co/api/v1/account/Tenderly/project/demo/。 Copy API URL 复制的是项目的基础 URL。请在其后添加端点路径,例如 Simulation API 的 simulate。API 请求还需要访问令牌。

在 dashboard URL 中查找 slug

Dashboard 中每个项目页面的 URL 都包含这两个 slug:https://dashboard.tenderly.co/{account_slug}/{project_slug}/...。例如,在 https://dashboard.tenderly.co/Tenderly/demo/simulator 中,账户 slug 为 Tenderly,项目 slug 为 demo。