civai-co Accounts API

The accounts API from civai-co — 6 operation(s) for accounts.

Operations 9

POST /api/accounts Create Account #
GET /api/accounts List Accounts #
GET /api/accounts/social-publish-config Get Social Publish Config #
GET /api/accounts/social-accounts Get All Social Accounts #
GET /api/accounts/social-accounts/{platform} Get Social Accounts #
GET /api/accounts/{account_id} Get Account #
PUT /api/accounts/{account_id} Update Account #
DELETE /api/accounts/{account_id} Delete Account #
POST /api/accounts/{account_id}/test Test Account Connection #

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/civai-co:civai-co-accounts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

civai-co-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Civai Co Accounts API
  version: 1.0.0
  description: 'Operations tagged accounts across 2 of this provider''s published API definitions: audience-resolver-api.civai.co-openapi.json, audience-resolver-api.civai.co-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Accounts
paths:
  /api/accounts:
    post:
      tags:
      - Accounts
      summary: Create Account
      description: 'Add a new social media account.


        See plan.md section 2.2.1 for account creation requirements.'
      operationId: create_account_api_accounts_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Accounts
      summary: List Accounts
      description: 'List all accounts for the authenticated user, optionally filtered by platform.


        See plan.md section 2.2.2 for account listing requirements.'
      operationId: list_accounts_api_accounts_get
      parameters:
      - name: platform
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by platform
          title: Platform
        description: Filter by platform
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AccountResponse'
                title: Response List Accounts Api Accounts Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/accounts/social-publish-config:
    get:
      tags:
      - Accounts
      summary: Get Social Publish Config
      description: Nova publish provider resolution for this workspace (native vs upload_post per platform).
      operationId: get_social_publish_config_api_accounts_social_publish_config_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /api/accounts/social-accounts:
    get:
      tags:
      - Accounts
      summary: Get All Social Accounts
      description: Every platform's accounts in one request (see the cache note above).
      operationId: get_all_social_accounts_api_accounts_social_accounts_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /api/accounts/social-accounts/{platform}:
    get:
      tags:
      - Accounts
      summary: Get Social Accounts
      description: 'Get social accounts from Civai-Nova API for a specific platform.


        Scoped by `visible_accounts`: your own accounts, your teammates'' accounts if

        you own the team, accounts assigned to you, and unassigned team accounts.'
      operationId: get_social_accounts_api_accounts_social_accounts__platform__get
      parameters:
      - name: platform
        in: path
        required: true
        schema:
          type: string
          title: Platform
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/accounts/{account_id}:
    get:
      tags:
      - Accounts
      summary: Get Account
      description: Get account details.
      operationId: get_account_api_accounts__account_id__get
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          title: Account Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Accounts
      summary: Update Account
      description: Update an account.
      operationId: update_account_api_accounts__account_id__put
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          title: Account Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Accounts
      summary: Delete Account
      description: Delete an account.
      operationId: delete_account_api_accounts__account_id__delete
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          title: Account Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/accounts/{account_id}/test:
    post:
      tags:
      - Accounts
      summary: Test Account Connection
      description: 'Test connection to the account''s platform.


        See plan.md section 2.2.1 for connection testing requirements.'
      operationId: test_account_connection_api_accounts__account_id__test_post
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          title: Account Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AccountResponse:
      properties:
        id:
          type: string
          title: Id
        platform:
          type: string
          title: Platform
        account_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Account Name
        account_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Account Id
        status:
          type: string
          title: Status
        created_at:
          type: string
          title: Created At
        updated_at:
          type: string
          title: Updated At
      type: object
      required:
      - id
      - platform
      - account_name
      - account_id
      - status
      - created_at
      - updated_at
      title: AccountResponse
      description: Model for account response.
    AccountCreate:
      properties:
        platform:
          type: string
          title: Platform
          description: Platform name (instagram, facebook, etc.)
        account_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Account Name
          description: Account name/identifier
        account_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Account Id
          description: Platform-specific account ID
        credentials:
          type: string
          title: Credentials
          description: Access token or credentials (will be encrypted)
      type: object
      required:
      - platform
      - credentials
      title: AccountCreate
      description: Model for creating a new account.
    AccountUpdate:
      properties:
        account_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Account Name
        credentials:
          anyOf:
          - type: string
          - type: 'null'
          title: Credentials
        status:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
      type: object
      title: AccountUpdate
      description: Model for updating an account.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
x-refined-from:
- audience-resolver-api.civai.co-openapi.json
- audience-resolver-api.civai.co-openapi.json