Finady Inc. Jobs API

The jobs API from Finady Inc., for jobs.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /api/v1/jobs/{jobId} ジョブ状態ポーリング #

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/yukkurigen-com:yukkurigen-com-jobs-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

yukkurigen-com-jobs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: YukkuriGen AI-operated Jobs API
  version: 1.1.0
  description: AI(Claude / Cursor / スクリプト)から YukkuriGen を操作し、台本から MP4 を生成する REST API。音声の合成からレンダーまでサーバ側で行います。MCP でも同じ機能を提供します(POST /api/mcp)。
servers:
- url: https://app.yukkurigen.com
security:
- bearerAuth: []
tags:
- name: Jobs
paths:
  /api/v1/jobs/{jobId}:
    get:
      summary: ジョブ状態ポーリング
      operationId: get_api_v1_jobs_jobId
      tags:
      - Jobs
      security:
      - apiKey: []
      - bearerAuth: []
      parameters:
      - name: jobId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ジョブの現在状態
          headers:
            Cache-Control:
              schema:
                type: string
              description: no-store(ポーリング用。中間キャッシュは無し)
          content:
            application/json:
              schema:
                type: object
                required:
                - jobId
                - kind
                - status
                properties:
                  jobId:
                    type: string
                  kind:
                    type: string
                    enum:
                    - welcome_email
                    - project_audio
                    - bgm_generate
                    - bgm_pipeline
                    - bgm_asset_generate
                    - agent_generate
                    - agent_generate_batch
                    - youtube_upload
                    - ai_script
                  status:
                    type: string
                    enum:
                    - queued
                    - running
                    - succeeded
                    - failed
                  projectId:
                    type:
                    - string
                    - 'null'
                    description: ジョブが作った、または対象にしているプロジェクトの ID(無いジョブは null)
                  progress:
                    type:
                    - object
                    - 'null'
                    properties:
                      done:
                        type: number
                      total:
                        type: number
                  result:
                    description: succeeded のときの結果(形は kind ごと)。agent_generate はレンダーの開始まで済んだ時点の POST /api/v1/agent/generate の同期 200 と同じ形(projectId・renderId・status "rendering" など)で、動画の完成ではない——renderId を進捗のポーリングに渡す。レンダー完了通知の署名鍵 callbackSecret と callbackSignatureHeader は含まない。agent_generate_batch は POST /api/v1/agent/generate/batch の同期 200 と同じ封筒(requested・succeeded・failed・results・打ち切ったなら stoppedAtIndex / stopReason / notAttempted)で、mp4 の件はレンダーの開始まで。progress は結果の出た件数(done。その件のジョブが動いている件は数えないので、どの件を作り始めたかの判断には使わない)と全件数(total)。bgm_asset_generate(POST /api/v1/assets/bgm/generate・MCP の generate_bgm)は url(行の bgm に書ける永続の URL)・downloadUrl(読むたびに署名し直す1時間のダウンロード URL)・downloadUrlExpiresAt・durationSec・assetId・trackId・key・name・mimeType・fileSizeBytes・projectId・appliedToProject
                  error:
                    description: 'failed のときの理由。agent_generate の failed は押さえたクレジットの返金を伴う(レンダーの起動後に失敗した場合を除く)。agent_generate_batch の failed は返金を意味しない: バッチのジョブ自体はクレジットを持たず、作り始めた件はそれぞれのジョブで課金されたまま進む'
                    type:
                    - object
                    - 'null'
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      httpStatus:
                        type: number
                  partialResults:
                    type:
                    - object
                    - 'null'
                    description: kind が agent_generate_batch で status が failed のときだけ付く(それ以外のジョブには無い)。失敗したバッチは result が null のままなので、各件がどこまで進んだかをここで返す。started と failedWithJob の件は**投げ直さない**(作り始めた件は課金されたまま進む。failedWithJob の課金の扱いはその jobId のジョブで確かめる)。ただし failedWithJob のうち、その件のジョブが失敗して返金された件は冪等キーが空いているので、同じ idempotencyKeyPrefix で全件を送り直すと作り直され、1回課金される(送り直す前にその jobId のジョブを確かめる。child_timeout でまだ動いている件は作り直されない)。投げ直すなら resendIndexes の件だけを、新しい idempotencyKeyPrefix の新しいバッチで送る。inFlight の件(同じ冪等キーの処理が別の呼び出しで進行中だった件)は resendIndexes に入らず、新しい idempotencyKeyPrefix のバッチに入れてはいけない(生きている予約を素通りし、別の呼び出しが作っている動画をもう一度作って払う)。しばらく置いてから、その件だけを同じ冪等キー(<idempotencyKeyPrefix>:<index>、idempotencyKeyPrefix が無ければその件の idempotencyKey)で送り直す。同じ idempotencyKeyPrefix で全件を送り直しても作り始めた件が二重に作られないのは、その件のジョブが終わってから 24 時間以内だけで、その期限を fullResendSafeUntil に入れる(null なら全件の送り直しをしない)。件を読めなかったときは partialResults 自体が null(しばらく置いて再度 GET する。推測で送り直さない)
                    properties:
                      started:
                        type: array
                        description: 作り始めた件。state が created は結果が成功(mp4 はレンダーの開始まで。renderId と projectId を進捗のポーリングに渡す)、running はその件のジョブがまだ動いている(jobId で追う)
                        items:
                          type: object
                          required:
                          - index
                          - state
                          properties:
                            index:
                              type: integer
                            state:
                              type: string
                              enum:
                              - created
                              - running
                            projectId:
                              type: string
                            renderId:
                              type: string
                            jobId:
                              type: string
                              description: その件のジョブ(draft の件には無い)
                      failedWithJob:
                        type: array
                        description: 結果は失敗だが、その件のジョブがある件(child_timeout を含む)。返金されたか・まだ動いているかはその jobId のジョブが決める
                        items:
                          type: object
                          required:
                          - index
                          - status
                          - jobId
                          properties:
                            index:
                              type: integer
                            status:
                              type: integer
                            code:
                              type: string
                            error:
                              type: string
                            projectId:
                              type: string
                            jobId:
                              type: string
                      notCreated:
                        type: array
                        description: 結果は失敗で、このバッチがその件のジョブを作っていない件(受け付けで断った件)
                        items:
                          type: object
                          required:
                          - index
                          - status
                          properties:
                            index:
                              type: integer
                            status:
                              type: integer
                            code:
                              type: string
                            error:
                              type: string
                      inFlight:
                        type: array
                        description: '結果が 409(code: in_flight)で、このバッチがその件のジョブを作っていない件。同じ冪等キーの処理が別の呼び出しで進行中だった(その呼び出しが作って課金している途中)。resendIndexes に入らない。新しい idempotencyKeyPrefix では送らず、しばらく置いてから同じ冪等キーでその件だけを送り直す'
                        items:
                          type: object
                          required:
                          - index
                          - status
                          properties:
                            index:
                              type: integer
                            status:
                              type: integer
                            code:
                              type: string
                            error:
                              type: string
                      notAttempted:
                        type: array
                        items:
                          type: integer
                        description: まだ作っていない件の index
                      resendIndexes:
                        type: array
                        items:
                          type: integer
                        description: 新しい idempotencyKeyPrefix の新しいバッチで投げ直してよい件の index(notCreated と notAttempted。inFlight は入れない。昇順)
                      hadIdempotencyKeyPrefix:
                        type: boolean
                        description: 受け付けに idempotencyKeyPrefix があったか
                      fullResendSafeUntil:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: この時刻までなら、同じ idempotencyKeyPrefix で全件を送り直しても started の件と、まだ動いている failedWithJob の件(child_timeout)は作り直されない(各件の冪等キーの 24 時間から余裕を引いた期限)。failedWithJob のうち、その件のジョブが失敗して返金された件は冪等キーが空いているので、期限内でも全件の送り直しで作り直され、1回課金される(送り直す前にその jobId のジョブを確かめる)。idempotencyKeyPrefix が無い・期限を過ぎた・確かめられないときは null
                  createdAt:
                    type:
                    - string
                    - 'null'
                    format: date-time
                  updatedAt:
                    type:
                    - string
                    - 'null'
                    format: date-time
        '401':
          description: '未認証(code: unauthenticated)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API キーのスコープ不足(projects:read が必要)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: ジョブが存在しないか他ユーザーのジョブ(列挙防止のため同一 404)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PurchaseSuggestion:
      type: object
      description: 402 のときに「これを買えば続けられる」を1つだけ示す(purchase)。無料プランの MP4 の plan_required だけは、少額の代わり(alternative・いちばん小さいクレジットパック)も添える。
      properties:
        priceKey:
          type: string
          description: checkout-link にそのまま渡す値
        label:
          type: string
        amountJpy:
          type: integer
        credits:
          type: integer
        reason:
          type: string
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          enum:
          - unauthenticated
          - signup_required
          - invalid_credentials
          - insufficient_scope
          - forbidden
          - plan_required
          - insufficient_credits
          - rate_limited
          - validation_error
          - not_found
          - template_not_found
          - line_not_found
          - duplicate_index
          - unknown_speaker
          - missing_audio
          - cast_mismatch
          - unsupported_field
          - price_unavailable
          - progress_unavailable
          - render_start_failed
          - render_in_progress
          - idempotency_key_reused
          - local_render_not_allowed
          - local_render_start_failed
          - local_render_complete_failed
          - not_uploaded
          - invalid_upload
          - render_id_in_use
          - internal_error
          - in_flight
          - unavailable
          - jobs_unavailable
          - ai_script_unavailable
          - ai_script_daily_cap
          - ai_script_user_daily_limit
          - too_many_concurrent_renders
          - callback_unavailable
          - generate_failed
          - quota_exceeded
          - dictionary_full
          - tts_quota_exceeded
          - already_subscribed
          - render_not_paid
          - render_not_ready
          - youtube_not_connected
          - template_in_use
          - subscription_cancel_failed
          description: エラー種別。render_in_progress はレンダーが進行中のためプロジェクトを削除できない(DELETE /projects/{projectId} の 409)。template_in_use はテンプレートがプロジェクトまたはチャンネルから参照されているため削除できない(DELETE /templates/{templateId} の 409)。progress_unavailable は進捗が読めなかっただけで、レンダー自体は継続している可能性がある(打ち切らないこと)。template_not_found は templateId が存在しない/他人のもの——課金は起きていないので、list_templates を引き直して投げ直す。tts_quota_exceeded は音声生成の月の文字数を使い切った(429。待っても resetAt まで戻らない——rate_limited と違い投げ直さない)。subscription_cancel_failed は退会時の Stripe 購読解約に失敗した(503)。しばらく時間をおいてから再試行してください。
        limit:
          type: integer
          description: tts_quota_exceeded のとき、今月の音声生成の文字数の上限。無料プランで購入なし 10,000・クレジットパックの残高がある/API連携ライセンスを持つ人は 500,000・スタンダード 500,000・プロ 2,000,000・エンタープライズ 5,000,000(暴走止め)。
        used:
          type: integer
          description: tts_quota_exceeded のとき、今月これまでに使った文字数。
        resetAt:
          type: string
          format: date-time
          description: tts_quota_exceeded のとき、使用量が 0 に戻る日時。生きている購読者は次の請求日、それ以外は日本時間の月初。
        purchaseUrl:
          type: string
          format: uri
        retryAfter:
          type: integer
          description: 429 のとき。再試行までの秒数(Retry-After ヘッダと同値)。
        validSpeakers:
          type: array
          items:
            type: string
          description: 未知の speaker / キャラid を送ったとき。使用可能なキャラid の一覧。
        purchase:
          $ref: '#/components/schemas/PurchaseSuggestion'
          description: 402 のとき、これを買えば足りるという1件。
        shortfall:
          type: integer
          description: 402 のとき、足りないクレジット数。
        alternative:
          $ref: '#/components/schemas/PurchaseSuggestion'
          description: MP4 の 402 plan_required(無料プラン)のときだけ。月額(purchase)の代わりに少額で始める道として、いちばん小さいクレジットパック(買い切り・期限なし)。無料プランのままでも、買ったクレジットが残っている間は MP4 を書き出せる。
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key: Authorization: Bearer yg_live_...  (発行: /settings/api-keys)'
    apiKey:
      type: http
      scheme: bearer
      description: 'A YukkuriGen API key issued at /api/v1/api-keys, sent as Authorization: Bearer <key>. Scoped; each operation documents its 403.'