Layers Inc. Marketing Bootstrap API

One-call project + app + influencer + content setup.

GitHub OpenAPI

Operations 1

POST /v1/marketing-bootstrap Bootstrap a project, app, influencer, and first content in one call #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/layers-com:layers-com-marketing-bootstrap-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

layers-com-marketing-bootstrap-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Layers Partner Marketing Bootstrap API
  version: v1
  description: The Layers Partner API — one contract for programmatic access to projects, content generation, publishing, and webhooks. See https://layers.com/docs for conventions (auth, pagination, idempotency, errors). Auto-generated from the Zod schemas at `packages/shared-types/src/http/partner/**`; do not edit by hand.
  contact:
    name: Layers Partner Support
    url: https://layers.com/docs/api/operational/status-and-support
servers:
- url: https://api.layers.com
  description: Production
security:
- Bearer: []
tags:
- name: Marketing Bootstrap
  description: One-call project + app + influencer + content setup.
paths:
  /v1/marketing-bootstrap:
    post:
      summary: Bootstrap a project, app, influencer, and first content in one call
      operationId: startMarketingBootstrap
      tags:
      - Marketing Bootstrap
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MarketingBootstrapRequestSchema'
      responses:
        '202':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketingBootstrapAcceptedSchema'
        4XX:
          description: Client error (see operational/errors)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelopeSchema'
        5XX:
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelopeSchema'
components:
  schemas:
    SdkAppPlatformEnum:
      type: string
      enum:
      - ios
      - android
      - web
      - react-native
      - flutter
      - expo
      - nextjs
      - vite
      - react-router
      - tanstack-start
      description: Platform the app targets (e.g. `ios`, `android`, `web`, `react-native`).
    OrganizationId:
      type: string
      minLength: 5
      maxLength: 64
      pattern: ^org_[A-Za-z0-9-]+$
    ProjectId:
      type: string
      minLength: 5
      maxLength: 64
      pattern: ^prj_[A-Za-z0-9-]+$
    SdkAppCreateRequestSchema:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 128
          description: Human-readable name for the app.
        platform:
          $ref: '#/components/schemas/SdkAppPlatformEnum'
        bundleId:
          description: iOS bundle identifier; required for `ios` apps.
          type: string
          maxLength: 256
        androidPackage:
          description: Android package name; required for `android` apps.
          type: string
          maxLength: 256
        webDomain:
          description: Web domain; required for `web`, `nextjs`, `vite`, `react-router`, and `tanstack-start` apps.
          type: string
          maxLength: 256
      required:
      - name
      - platform
      additionalProperties: false
    KillSwitchScopeEnum:
      type: string
      enum:
      - key
      - organization
      - global
      description: Breadth of the kill switch that blocked the request.
    PlatformErrorPlatformEnum:
      type: string
      enum:
      - tiktok
      - meta
      - apple
      - instagram
      - appstore
      description: Upstream platform that rejected or could not service the request.
    ErrorEnvelopeSchema:
      type: object
      properties:
        error:
          description: Error payload describing why the request failed.
          $ref: '#/components/schemas/ErrorBodySchemaOutput'
      required:
      - error
      additionalProperties: false
    ValidationIssueSchemaOutput:
      type: object
      properties:
        path:
          type: string
          description: Dotted path to the request field that failed validation.
        message:
          type: string
          description: Human-readable explanation of the validation failure.
      required:
      - path
      - message
      additionalProperties: false
    JobId:
      type: string
      minLength: 5
      maxLength: 64
      pattern: ^job_[A-Za-z0-9-]+$
    MarketingBootstrapRequestSchema:
      type: object
      properties:
        project:
          type: object
          properties:
            name:
              type: string
              minLength: 1
              maxLength: 200
              description: Display name for the new project.
            customerExternalId:
              description: Your own identifier for this customer, echoed back on the project for cross-referencing.
              type: string
              minLength: 1
              maxLength: 128
            timezone:
              type: string
              minLength: 1
              maxLength: 64
              description: IANA timezone for the project (e.g. 'America/New_York').
            primaryLanguage:
              description: Primary content language as a BCP-47 code (e.g. 'en', 'es').
              type: string
              minLength: 1
              maxLength: 16
          required:
          - name
          - timezone
          description: Details for the new project to create.
        brand:
          description: Brand details supplied directly as key-value pairs, as an alternative to ingest.
          type: object
          propertyNames:
            type: string
          additionalProperties: {}
        sdkApp:
          description: SDK app to provision for tracking; pass null to skip provisioning.
          anyOf:
          - $ref: '#/components/schemas/SdkAppCreateRequestSchema'
          - type: 'null'
        ingest:
          description: Source to automatically ingest brand details from; omit to skip ingest.
          oneOf:
          - type: object
            properties:
              source:
                type: string
                const: website
                description: Ingest brand details by crawling a website.
              url:
                type: string
                format: uri
                description: Website URL to crawl for brand details.
              maxPages:
                description: Maximum number of pages to crawl (1-50).
                type: integer
                exclusiveMinimum: 0
                maximum: 50
            required:
            - source
            - url
            additionalProperties: false
          - type: object
            properties:
              source:
                type: string
                const: appstore
                description: Ingest brand details from an app store listing.
              appStoreUrl:
                type: string
                format: uri
                description: App Store or Play Store listing URL.
            required:
            - source
            - appStoreUrl
            additionalProperties: false
          - type: object
            properties:
              source:
                type: string
                const: github
                description: Ingest brand details from a GitHub repository.
              repoUrl:
                type: string
                format: uri
                description: GitHub repository URL.
              installationId:
                description: GitHub App installation id, required to access private repositories.
                type: integer
                exclusiveMinimum: 0
                maximum: 9007199254740991
            required:
            - source
            - repoUrl
            additionalProperties: false
          type: object
        influencer:
          description: First influencer to create; pass null to opt out.
          anyOf:
          - oneOf:
            - type: object
              properties:
                source:
                  type: string
                  const: partner_supplied
                  description: Use the influencer details you provide below.
                name:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: Influencer's display name.
                gender:
                  description: Influencer's gender.
                  type: string
                  maxLength: 64
                ageRange:
                  description: Influencer's age range (e.g. '25-34').
                  type: string
                  maxLength: 32
                personality:
                  description: Short descriptor of the influencer's personality or vibe.
                  type: string
                  maxLength: 64
              required:
              - source
              - name
              additionalProperties: false
            - type: object
              properties:
                source:
                  type: string
                  const: auto
                  description: Automatically generate a fitting influencer for the brand.
              required:
              - source
              additionalProperties: false
            type: object
          - type: 'null'
        content:
          description: First piece of content to generate; omit to skip and return setup only.
          type: object
          properties:
            format:
              description: Format of the first piece of content to generate.
              $ref: '#/components/schemas/ContentFormatEnum'
            hook:
              type: string
              minLength: 1
              maxLength: 2000
              description: Opening hook text used verbatim at the start of the generated content.
            variantCount:
              description: Number of content variants to generate (1-5).
              type: integer
              minimum: 1
              maximum: 5
          required:
          - format
          - hook
          additionalProperties: false
      required:
      - project
      additionalProperties: false
    IsoTimestampSchema:
      anyOf:
      - type: string
        format: date-time
        pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
      - type: string
        pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?:Z))$
      description: ISO-8601 UTC timestamp with the 'Z' suffix (e.g. `2026-04-18T12:04:11Z`). Offset forms like `+00:00` are rejected with 422 VALIDATION — convert to UTC before sending. Outputs always emit `Z` so input shape matches output shape.
    ContentFormatEnum:
      type: string
      enum:
      - slideshow-builder
      - ugc-remix
      description: 'Content format you can generate today: an image slideshow or a UGC-style reaction video.'
    ErrorBodySchemaOutput:
      type: object
      properties:
        code:
          $ref: '#/components/schemas/ErrorCodeEnum'
        message:
          type: string
          description: Human-readable description of the error.
        requestId:
          $ref: '#/components/schemas/RequestId'
        details:
          description: Code-specific structured context for the error.
          $ref: '#/components/schemas/ErrorDetailsSchemaOutput'
      required:
      - code
      - message
      - requestId
      additionalProperties: false
    ErrorCodeEnum:
      type: string
      enum:
      - UNAUTHENTICATED
      - FORBIDDEN_SCOPE
      - FORBIDDEN_FENCE
      - NOT_FOUND
      - CONFLICT
      - FEATURE_RETIRED
      - VALIDATION
      - APPROVAL_REQUIRED
      - CONTENT_REJECTED
      - RETURN_URL_NOT_ALLOWED
      - KILL_SWITCH
      - BILLING_EXHAUSTED
      - MODERATION_BLOCKED
      - CREDENTIAL_INVALID
      - CIRCUIT_OPEN
      - SOCIAL_ACCOUNT_NOT_PUBLISH_READY
      - APP_REVOKED
      - RATE_LIMITED
      - INTERNAL
      - PLATFORM_ERROR
      - UPLOAD_INCOMPLETE
      - UPLOAD_EXPIRED
      - PAYLOAD_TOO_LARGE
      - SCRAPE_FAILED
      - UPLOAD_QUOTA_EXCEEDED
      description: Stable machine-readable error code identifying what went wrong.
    MarketingBootstrapAcceptedSchema:
      type: object
      properties:
        jobId:
          description: Identifier of the accepted job; poll `GET /v1/jobs/:jobId` for status.
          $ref: '#/components/schemas/JobId'
        kind:
          $ref: '#/components/schemas/JobKindEnum'
        status:
          type: string
          const: running
          description: Always `running` for a freshly accepted job.
        startedAt:
          description: When the job started.
          $ref: '#/components/schemas/IsoTimestampSchema'
        locationUrl:
          description: Absolute URL to poll for this job's status.
          type: string
        bootstrapJobId:
          type: string
          description: Correlation id for the bootstrap job, used to track progress across all stages.
        projectId:
          anyOf:
          - $ref: '#/components/schemas/ProjectId'
          - type: 'null'
          description: Id of the created project, or null until the project has been minted.
        organizationId:
          description: Id of the organization the bootstrap runs under.
          $ref: '#/components/schemas/OrganizationId'
        sdkAppId:
          description: Id of the provisioned SDK app, or null if none was requested.
          type:
          - string
          - 'null'
        layerIds:
          default: []
          description: Ids of the default configurations created for the project.
          type: array
          items:
            type: string
        influencerId:
          description: Id of the created influencer, or null if none was requested.
          type:
          - string
          - 'null'
        containerIds:
          default: []
          description: Ids of the content items created during bootstrap.
          type: array
          items:
            $ref: '#/components/schemas/ContentContainerId'
        jobIds:
          default: {}
          description: Ids of the async sub-jobs spawned by the bootstrap.
          type: object
          properties:
            ingest:
              description: Id of the brand-ingest job, or null if ingest was skipped.
              type:
              - string
              - 'null'
            content:
              description: Id of the content-generation job, or null if content was skipped.
              type:
              - string
              - 'null'
          additionalProperties: false
        partialFailures:
          description: Per-stage failures encountered during bootstrap; null until the workflow completes.
          anyOf:
          - type: object
            properties:
              firstContent:
                description: Failure details for the first-content stage, or null if it succeeded.
                anyOf:
                - type: object
                  properties:
                    code:
                      type: string
                      description: Machine-readable error code for the failure.
                    message:
                      type: string
                      description: Human-readable explanation of the failure.
                  required:
                  - code
                  - message
                  additionalProperties: false
                - type: 'null'
            additionalProperties: false
          - type: 'null'
      required:
      - jobId
      - kind
      - status
      - startedAt
      - bootstrapJobId
      - projectId
      - organizationId
      - layerIds
      - containerIds
      - jobIds
      additionalProperties: false
    RequestId:
      type: string
      minLength: 5
      maxLength: 64
      pattern: ^req_[A-Za-z0-9-]+$
    ErrorDetailsSchemaOutput:
      type: object
      properties:
        reason:
          description: Short reason code or phrase narrowing the error.
          type: string
        originalRequestHash:
          description: Body hash of the original idempotent request, on a CONFLICT replay.
          type: string
        currentRequestHash:
          description: Body hash of the current request, on a CONFLICT replay.
          type: string
        issues:
          description: Per-field validation failures, present on VALIDATION errors.
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssueSchemaOutput'
        requiredScope:
          description: Scope the API key lacks, present on FORBIDDEN_SCOPE errors.
          type: string
        scope:
          description: Breadth of the kill switch that tripped.
          $ref: '#/components/schemas/KillSwitchScopeEnum'
        resource:
          description: Exhausted billing resource, present on BILLING_EXHAUSTED errors.
          type: string
        platform:
          description: Platform whose stored credential is invalid.
          $ref: '#/components/schemas/PlatformErrorPlatformEnum'
        socialAccountId:
          description: Social account whose credential is invalid.
          type: string
        retryAfterSeconds:
          description: Seconds to wait before retrying.
          type: number
          minimum: 0
        retryAfterMs:
          description: Milliseconds to wait before retrying.
          anyOf:
          - type: number
            minimum: 0
          - type: 'null'
        platformCode:
          description: Raw error code returned by the upstream platform.
          type: string
        platformMessage:
          description: Raw error message returned by the upstream platform.
          type: string
        endpointClass:
          description: Rate-limit bucket the throttled request belongs to.
          type: string
        stage:
          description: Job stage at which the failure occurred.
          type: string
        flag:
          description: Moderation flag that blocked the request.
          type: string
        safetyCategory:
          description: Safety category triggered by moderation.
          type: string
        containerId:
          description: Content container the error relates to.
          type: string
        approvalStatus:
          description: Current approval status of the content.
          type: string
      additionalProperties: {}
    ContentContainerId:
      type: string
      minLength: 5
      maxLength: 64
      pattern: ^cnt_[A-Za-z0-9-]+$
    JobKindEnum:
      type: string
      enum:
      - project_ingest_github
      - project_ingest_website
      - content_generate
      - content_clone_from_post
      - influencer_create
      - appstore_ingest
      - marketing_bootstrap
      - ad_optimizer_run
      - project_keywords_refresh
      description: The kind of async operation this job is running.
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: 'Partner API key sent as `Authorization: Bearer <key>`. Issued per org; rotatable via the dashboard. This is the only accepted auth form.'