Skip to main content
POST
/
v1
/
account
/
{accountSlug}
/
project
/
{projectSlug}
/
tag
Add tag to mutiple contracts
curl --request POST \
  --url https://api.tenderly.co/api/v1/account/{accountSlug}/project/{projectSlug}/tag \
  --header 'Content-Type: application/json' \
  --header 'X-Access-Key: <api-key>' \
  --data '
{
  "tag": "v1.0.0",
  "contract_ids": [
    "eth:${NETWORK_ID}:${CONTRACT_ADDRESS}"
  ]
}
'
{
  "tag": {
    "tag": "v1.0.0",
    "created_at": "2023-12-11T14:14:40.823977515Z"
  }
}

Authorizations

X-Access-Key
string
header
required

An API key is a token that a client provides when making API calls. The key can be sent as a request header:

curl 'https://api.tenderly.co/api/v1/account/${TENDERLY_ACCOUNT_SLUG}/project/${TENDERLY_PROJECT_SLUG}/simulate' \
-H 'X-Access-Key: ${TENDERLY_ACCESS_KEY}' \
...

Learn how to generate API access tokens at Tenderly Docs.

Path Parameters

accountSlug
string
required

Account slug of the user

projectSlug
string
required

Project slug of the account

Body

application/json

Tag contracts payload

tag
string
required

New tag for the smart contracts.

Example:

"v1.0.0"

contract_ids
string[]
required

A list of smart contract IDs to be tagged.

Example:
["eth:${NETWORK_ID}:${CONTRACT_ADDRESS}"]

Response

A successful response.

An object with details about tagged contracts.