POST
/
v1
/
storage
/
stores
/
integration
/
direct
createIntegrationStoreDirect
import { Vercel } from "@vercel/sdk";

const vercel = new Vercel({
  bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await vercel.integrations.createIntegrationStoreDirect({
    teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
    slug: "my-team-url-slug",
    requestBody: {
      name: "my-dev-database",
      integrationConfigurationId: "icfg_cuwj0AdCdH3BwWT4LPijCC7t",
      integrationProductIdOrSlug: "iap_postgres_db",
      metadata: {
        "environment": "development",
        "project": "my-app",
        "tags": [
          "database",
          "postgres",
        ],
      },
      externalId: "dev-db-001",
      protocolSettings: {
        "experimentation": {
          "edgeConfigSyncingEnabled": true,
        },
      },
      source: "api",
      billingPlanId: "bp_abc123def456",
      paymentMethodId: "pm_1AbcDefGhiJklMno",
      prepaymentAmountCents: 5000,
    },
  });

  console.log(result);
}

run();
{
  "store": {
    "projectsMetadata": [
      {
        "id": "<string>",
        "projectId": "<string>",
        "name": "<string>",
        "framework": "blitzjs",
        "latestDeployment": "<string>",
        "environments": [
          "production"
        ],
        "envVarPrefix": "<string>",
        "environmentVariables": [
          "<string>"
        ],
        "deployments": {
          "required": true,
          "actions": [
            {
              "slug": "<string>",
              "environments": [
                "production"
              ]
            }
          ]
        }
      }
    ],
    "totalConnectedProjects": 123,
    "usageQuotaExceeded": true,
    "status": "available",
    "metadata": {},
    "externalResourceId": "<string>",
    "externalResourceStatus": "error",
    "product": {
      "id": "<string>",
      "name": "<string>",
      "slug": "<string>",
      "iconUrl": "<string>",
      "shortDescription": "<string>",
      "metadataSchema": {
        "type": "object",
        "properties": {},
        "required": [
          "<string>"
        ]
      },
      "resourceLinks": [
        {
          "href": "<string>",
          "title": "<string>"
        }
      ],
      "tags": [
        "edge-config"
      ],
      "projectConnectionScopes": [
        "read:deployment"
      ],
      "showSSOLinkOnProjectConnection": true,
      "disableResourceRenaming": true,
      "repl": {
        "enabled": true,
        "supportsReadOnlyMode": true,
        "welcomeMessage": "<string>"
      },
      "guides": [
        {
          "framework": "<string>",
          "title": "<string>",
          "steps": [
            {
              "title": "<string>",
              "content": "<string>",
              "actions": [
                {
                  "type": "connect_to_project"
                }
              ]
            }
          ]
        }
      ],
      "value": {
        "__@BRAND@7825": {}
      },
      "disabled": true,
      "hidden": true
    },
    "protocolSettings": {
      "experimentation": {
        "edgeConfigSyncingEnabled": true,
        "edgeConfigId": "<string>",
        "edgeConfigTokenId": "<string>"
      }
    },
    "notification": {
      "title": "<string>",
      "level": "error",
      "message": "<string>",
      "href": "<string>"
    },
    "secrets": [
      {
        "name": "<string>",
        "length": 123
      }
    ],
    "billingPlan": {
      "type": "prepayment",
      "description": "<string>",
      "id": "<string>",
      "name": "<string>",
      "scope": "installation",
      "paymentMethodRequired": true,
      "preauthorizationAmount": 123,
      "initialCharge": "<string>",
      "minimumAmount": "<string>",
      "maximumAmount": "<string>",
      "maximumAmountAutoPurchasePerPeriod": "<string>",
      "cost": "<string>",
      "details": [
        {
          "label": "<string>",
          "value": "<string>"
        }
      ],
      "highlightedDetails": [
        {
          "label": "<string>",
          "value": "<string>"
        }
      ],
      "quote": [
        {
          "line": "<string>",
          "amount": "<string>"
        }
      ],
      "effectiveDate": "<string>",
      "disabled": true
    }
  }
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Query Parameters

teamId
string

The Team identifier to perform the request on behalf of.

Example:

"team_1a2b3c4d5e6f7g8h9i0j1k2l"

slug
string

The Team slug to perform the request on behalf of.

Example:

"my-team-url-slug"

Body

application/json

Response

200
application/json

The response is of type object.