Layers Inc. Influencers API

Influencer persona management.

GitHub OpenAPI

Operations 6

GET /v1/influencers/{influencerId} Get an influencer #
PATCH /v1/influencers/{influencerId} Patch an influencer #
DELETE /v1/influencers/{influencerId} Delete an influencer #
POST /v1/influencers/{influencerId}/clone Clone an influencer into another project #
GET /v1/projects/{projectId}/influencers List influencers #
POST /v1/projects/{projectId}/influencers Create an influencer #

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-influencers-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-influencers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Layers Partner Influencers 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: Influencers
  description: Influencer persona management.
paths:
  /v1/influencers/{influencerId}:
    get:
      summary: Get an influencer
      operationId: getInfluencer
      tags:
      - Influencers
      parameters:
      - in: path
        name: influencerId
        schema:
          $ref: '#/components/schemas/InfluencerId'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InfluencerResponseSchemaOutput'
        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'
    patch:
      summary: Patch an influencer
      operationId: updateInfluencer
      tags:
      - Influencers
      parameters:
      - in: path
        name: influencerId
        schema:
          $ref: '#/components/schemas/InfluencerId'
        required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InfluencerPatchRequestSchema'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InfluencerResponseSchemaOutput'
        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'
    delete:
      summary: Delete an influencer
      operationId: deleteInfluencer
      tags:
      - Influencers
      parameters:
      - in: path
        name: influencerId
        schema:
          $ref: '#/components/schemas/InfluencerId'
        required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InfluencerDeleteRequestSchema'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InfluencerDeleteResponseSchema'
        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'
  /v1/influencers/{influencerId}/clone:
    post:
      summary: Clone an influencer into another project
      operationId: cloneInfluencer
      tags:
      - Influencers
      parameters:
      - in: path
        name: influencerId
        schema:
          $ref: '#/components/schemas/InfluencerId'
        required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CloneRequestSchema'
      responses:
        '202':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InfluencerCloneAcceptedSchema'
        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'
  /v1/projects/{projectId}/influencers:
    get:
      summary: List influencers
      operationId: listInfluencers
      tags:
      - Influencers
      parameters:
      - in: path
        name: projectId
        schema:
          $ref: '#/components/schemas/ProjectId'
        required: true
      - in: query
        name: cursor
        schema:
          description: Opaque cursor from a prior response's `nextCursor`; omit to start at the first page.
          type: string
          minLength: 1
          maxLength: 512
        description: Opaque cursor from a prior response's `nextCursor`; omit to start at the first page.
      - in: query
        name: limit
        schema:
          description: Maximum number of items to return per page (1–200).
          type: integer
          exclusiveMinimum: 0
          maximum: 200
        description: Maximum number of items to return per page (1–200).
      - in: query
        name: status
        schema:
          description: Optional filter to return only influencers in this lifecycle state.
          $ref: '#/components/schemas/InfluencerStatusEnum'
        description: Optional filter to return only influencers in this lifecycle state.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InfluencerListResponseSchema'
        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'
    post:
      summary: Create an influencer
      operationId: createInfluencer
      tags:
      - Influencers
      parameters:
      - in: path
        name: projectId
        schema:
          $ref: '#/components/schemas/ProjectId'
        required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InfluencerCreateRequestSchema'
      responses:
        '202':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InfluencerCreateAcceptedSchema'
        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:
    CloneRequestSchema:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 128
          description: Display name for the new cloned influencer.
        overrides:
          description: Optional field overrides applied to the clone.
          type: object
          properties:
            gender:
              description: Influencer's gender.
              $ref: '#/components/schemas/InfluencerGenderEnum'
            ageRange:
              anyOf:
              - $ref: '#/components/schemas/InfluencerAgeRangeEnum'
              - type: 'null'
              description: Approximate age band, or null if unset.
            brandVoice:
              description: Brand voice preset for this influencer.
              $ref: '#/components/schemas/InfluencerBrandVoiceEnum'
            language:
              description: Content language for this influencer as a BCP 47 tag.
              $ref: '#/components/schemas/InfluencerLanguageSchema'
      required:
      - name
      additionalProperties: false
    InfluencerPatchRequestSchema:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 128
          description: Display name of the influencer.
        gender:
          description: Influencer's gender.
          $ref: '#/components/schemas/InfluencerGenderEnum'
        ageRange:
          anyOf:
          - $ref: '#/components/schemas/InfluencerAgeRangeEnum'
          - type: 'null'
          description: Approximate age band, or null if unset.
        brandVoice:
          description: Brand voice preset for this influencer.
          $ref: '#/components/schemas/InfluencerBrandVoiceEnum'
        language:
          description: Content language for this influencer as a BCP 47 tag.
          $ref: '#/components/schemas/InfluencerLanguageSchema'
      additionalProperties: false
    ProjectId:
      type: string
      minLength: 5
      maxLength: 64
      pattern: ^prj_[A-Za-z0-9-]+$
    InfluencerBrandVoiceEnum:
      type: string
      enum:
      - authentic
      - witty
      - professional
      - warm
      - casual
      - educational
      description: Brand voice preset that sets the tone of generated content.
    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.
    InfluencerGenderEnum:
      type: string
      enum:
      - male
      - female
      - non_binary
      description: Influencer's gender used to shape face and persona output.
    ErrorEnvelopeSchema:
      type: object
      properties:
        error:
          description: Error payload describing why the request failed.
          $ref: '#/components/schemas/ErrorBodySchemaOutput'
      required:
      - error
      additionalProperties: false
    InfluencerListResponseSchema:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/InfluencerResponseSchemaOutput'
        nextCursor:
          type:
          - string
          - 'null'
      required:
      - items
      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
    InfluencerDeleteRequestSchema:
      type: object
      properties:
        reason:
          description: Optional free-text reason for deleting the influencer.
          type: string
          maxLength: 1024
      additionalProperties: false
    JobId:
      type: string
      minLength: 5
      maxLength: 64
      pattern: ^job_[A-Za-z0-9-]+$
    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.
    InfluencerId:
      type: string
      minLength: 5
      maxLength: 64
      pattern: ^inf_[A-Za-z0-9-]+$
    InfluencerCreateRequestSchema:
      type: object
      properties:
        gender:
          description: Optional gender for the influencer; defaults to the server value if omitted.
          $ref: '#/components/schemas/InfluencerGenderEnum'
        ageRange:
          description: Optional age band for the influencer's appearance.
          $ref: '#/components/schemas/InfluencerAgeRangeEnum'
        prompt:
          description: Optional free-text hint guiding the influencer's persona, e.g. 'barista energy'.
          type: string
          minLength: 1
          maxLength: 60
      additionalProperties: false
    InfluencerCreateAcceptedSchema:
      type: object
      properties:
        jobId:
          description: Identifier of the accepted job; poll `GET /v1/jobs/:jobId` for status.
          $ref: '#/components/schemas/JobId'
        kind:
          type: string
          const: influencer_create
          description: Job type, always 'influencer_create'.
        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
        influencerId:
          description: Identifier of the influencer being created.
          $ref: '#/components/schemas/InfluencerId'
      required:
      - jobId
      - kind
      - status
      - startedAt
      - influencerId
      additionalProperties: false
    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
    InfluencerStatusEnum:
      type: string
      enum:
      - pending
      - training
      - ready
      - failed
      description: 'Lifecycle state of the influencer: pending, training, ready, or failed.'
    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.
    InfluencerCloneAcceptedSchema:
      type: object
      properties:
        jobId:
          description: Identifier of the accepted job; poll `GET /v1/jobs/:jobId` for status.
          $ref: '#/components/schemas/JobId'
        kind:
          type: string
          const: influencer_create
          description: Job type, always 'influencer_create'.
        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
        influencerId:
          description: Identifier of the newly cloned influencer.
          $ref: '#/components/schemas/InfluencerId'
      required:
      - jobId
      - kind
      - status
      - startedAt
      - influencerId
      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: {}
    InfluencerResponseSchemaOutput:
      type: object
      properties:
        influencerId:
          description: Unique identifier for the influencer.
          $ref: '#/components/schemas/InfluencerId'
        projectId:
          description: Identifier of the project that owns this influencer.
          $ref: '#/components/schemas/ProjectId'
        name:
          type: string
          minLength: 1
          maxLength: 128
          description: Display name of the influencer.
        imageUrl:
          anyOf:
          - type: string
            format: uri
          - type: 'null'
          description: URL of the influencer's generated face image, or null until ready.
        gender:
          description: Influencer's gender.
          $ref: '#/components/schemas/InfluencerGenderEnum'
        ageRange:
          anyOf:
          - $ref: '#/components/schemas/InfluencerAgeRangeEnum'
          - type: 'null'
          description: Approximate age band, or null if unset.
        brandVoice:
          description: Brand voice preset for this influencer.
          $ref: '#/components/schemas/InfluencerBrandVoiceEnum'
        language:
          description: Content language for this influencer as a BCP 47 tag.
          $ref: '#/components/schemas/InfluencerLanguageSchema'
        status:
          description: Current lifecycle state of the influencer.
          $ref: '#/components/schemas/InfluencerStatusEnum'
        errorMessage:
          description: Reason the influencer failed to generate; null unless status is failed.
          type:
          - string
          - 'null'
        createdAt:
          description: Creation time as an ISO-8601 UTC timestamp.
          $ref: '#/components/schemas/IsoTimestampSchema'
        updatedAt:
          description: Last-update time as an ISO-8601 UTC timestamp.
          $ref: '#/components/schemas/IsoTimestampSchema'
      required:
      - influencerId
      - projectId
      - name
      - imageUrl
      - gender
      - ageRange
      - brandVoice
      - language
      - status
      - errorMessage
      - createdAt
      - updatedAt
      additionalProperties: false
    InfluencerDeleteResponseSchema:
      type: object
      properties:
        influencerId:
          description: Identifier of the deleted influencer.
          $ref: '#/components/schemas/InfluencerId'
        status:
          type: string
          const: deleted
          description: Confirmation status, always 'deleted'.
        deletedAt:
          description: Deletion time as an ISO-8601 UTC timestamp.
          $ref: '#/components/schemas/IsoTimestampSchema'
      required:
      - influencerId
      - status
      - deletedAt
      additionalProperties: false
    InfluencerLanguageSchema:
      type: string
      minLength: 2
      maxLength: 16
      pattern: ^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$
      description: Content language as a BCP 47 tag, e.g. 'en', 'en-US', or 'pt-BR'.
    InfluencerAgeRangeEnum:
      type: string
      enum:
      - teen
      - young_adult
      - adult
      - mid_adult
      - mature
      - senior
      description: Approximate age band for the influencer's appearance.
  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.'