Vestiarion Milestones API

The Milestones API from Vestiarion, for milestones.

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 2

GET /api/v1/milestones List milestones #
POST /api/v1/milestones Add a milestone #

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/vestiarion-xyz:vestiarion-xyz-milestones-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

vestiarion-xyz-milestones-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Vestiarion Milestones API
  version: v1
  description: Read a workspace's ledger, books, counterparties, milestones, treasury and insights, each payment's evidence and receipt and the monthly close pack, and add counterparties, invoices, milestones and payee links, with a workspace API key.
servers:
- url: https://www.vestiarion.xyz
tags:
- name: Milestones
paths:
  /api/v1/milestones:
    get:
      operationId: list-milestones
      summary: List milestones
      description: 'Contractor milestones, newest first, with the row id breaking equal timestamps: how each was verified, and whether it was paid. Only a real `0x` transaction is exposed as `txHash`.'
      tags:
      - Milestones
      security:
      - bearerAuth: []
      parameters:
      - name: limit
        in: query
        required: false
        description: How many items to return. Defaults to 50; a larger value is capped at 200.
        schema:
          type: integer
          default: 50
          minimum: 1
          maximum: 200
      - name: cursor
        in: query
        required: false
        description: 'The previous response''s `page.nextCursor`, passed back unchanged to continue. Opaque: never decode or construct one. A cursor this endpoint could not have issued is refused with `400`.'
        schema:
          type: string
      - name: status
        in: query
        required: false
        description: Only milestones in this status.
        schema:
          type: string
          enum:
          - pending
          - verified
          - paid
          - held
          - closed
      - name: contractorId
        in: query
        required: false
        description: Only milestones for this contractor.
        schema:
          type: string
        example: 5541f1a4-4e48-4fa5-880c-9ffc97d8953b
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListMilestonesResponse'
              example:
                data:
                - id: d01b2b49-2ca3-45fe-898c-f2c0128f6188
                  title: Landing page redesign — milestone 2
                  amount: 0.9
                  status: paid
                  verificationSource: timesheet:kimai
                  verificationMethod: seed
                  verificationStatus: verified
                  verificationCheckedAt: null
                  verifiedAt: '2026-09-24T11:54:57.14+00:00'
                  verificationDetail:
                    fixture: true
                  verified: true
                  decidedAt: '2026-09-24T11:55:54.276+00:00'
                  settledAt: '2026-09-24T11:55:54.276+00:00'
                  closedAt: null
                  closeReason: null
                  agentReasoning: Milestone 'Landing page redesign — milestone 2' for 0.9 USDC is verified via timesheet:kimai, contractor Diego Ramirez has riskLevel 'clear' (not high), and the amount 0.9 is below his paymentLimit of 2.5. No duplicate invoice or PO mismatch indicated, and verification source is confirmed, so immediate release is justified rather than deferring to Net-30.
                  txHash: '0xa710040ac59af4501a4c91f70287f1fecec1aad037e5d0fc2141fe270f81d969'
                  contractor:
                    id: 5541f1a4-4e48-4fa5-880c-9ffc97d8953b
                    name: Diego Ramirez — Design Contractor
                    riskLevel: clear
                  createdAt: '2026-09-24T11:54:57.933771+00:00'
                page:
                  nextCursor: eyJrIjoiMjAyNi0wOS0yNFQxMTo1NDo1Ny45MzM3NzErMDA6MDAiLCJpZCI6ImQwMWIyYjQ5LTJjYTMtNDVmZS04OThjLWYyYzAxMjhmNjE4OCJ9
                  hasMore: true
                  count: 1
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: internal
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
    post:
      operationId: create-milestone
      summary: Add a milestone
      description: 'Adds work a contractor is to be paid for, checked by the rules of the console''s Add milestone form, and recorded in the ledger as `create_milestone` with `via: "api"` and the key''s id. It is added as the key''s issuer''s: if the agent holds it on its own judgment, someone other than the issuer must choose Pay now, unless the issuer is the workspace''s only approver.


        It starts `pending`, and the API cannot verify it. A GitHub pull request in `verificationSource` is checked by the agent, which verifies the milestone once the pull request is merged; any other link is evidence for the person who verifies it on Contractors. Once it is verified, the agent decides the payment with every guardrail, and pays only to the contractor''s confirmed address. A `contractorId` the workspace does not hold, or a client''s, answers `400`.'
      tags:
      - Milestones
      security:
      - bearerAuth: []
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: 'Makes a retry safe: up to 255 printable ASCII characters, unique to the record being added, such as its id in your own system. A repeat with the same key and the same body within 24 hours gets the first answer back, with `Idempotent-Replayed: true`, and adds nothing. The same key with a different body answers `409`.'
        schema:
          type: string
        example: ci-bounty-pr-176
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMilestoneRequest'
            example:
              contractorId: 26d6ffed-356d-474a-8d42-89bc942f6b4e
              title: TypeScript SDK for the API
              amount: '0.10'
              verificationSource: https://github.com/duongnq2798/vestiarion/pull/176
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateMilestoneResponse'
              example:
                data:
                  id: 354132aa-e7f6-46f8-ae3c-aa6809f9b9b6
                  title: TypeScript SDK for the API
                  amount: 0.1
                  status: pending
                  verificationSource: https://github.com/duongnq2798/vestiarion/pull/176
                  verificationMethod: unverified
                  verificationStatus: unverified
                  verificationCheckedAt: null
                  verifiedAt: null
                  verificationDetail: {}
                  verified: false
                  decidedAt: null
                  settledAt: null
                  closedAt: null
                  closeReason: null
                  agentReasoning: null
                  txHash: null
                  contractor:
                    id: 26d6ffed-356d-474a-8d42-89bc942f6b4e
                    name: API Test Contractor
                    riskLevel: clear
                  createdAt: '2026-10-03T15:43:09.204631+00:00'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: rate_limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: internal
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    CreateMilestoneResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            id:
              type: string
            title:
              type: string
            amount:
              type: number
            status:
              type: string
              enum:
              - pending
              - verified
              - paid
              - held
              - closed
            verificationSource:
              type:
              - string
              - 'null'
            verificationMethod:
              type: string
              enum:
              - unverified
              - github
              - manual
              - seed
              - asana
              - linear
              - jira
            verificationStatus:
              type: string
              enum:
              - unverified
              - verified
              - not_merged
              - unavailable
              - failed
            verificationCheckedAt:
              type:
              - string
              - 'null'
            verifiedAt:
              type:
              - string
              - 'null'
            verificationDetail:
              type: object
              propertyNames:
                type: string
              additionalProperties: {}
            verified:
              type: boolean
            decidedAt:
              type:
              - string
              - 'null'
            settledAt:
              type:
              - string
              - 'null'
            closedAt:
              description: When a person closed the milestone without paying it (status closed), else null.
              type:
              - string
              - 'null'
            closeReason:
              description: The reason the person gave for closing it without paying, else null.
              type:
              - string
              - 'null'
            agentReasoning:
              type:
              - string
              - 'null'
            txHash:
              description: An on-chain hash when the payment settled on Arc, else null.
              type:
              - string
              - 'null'
            contractor:
              anyOf:
              - type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  riskLevel:
                    type: string
                required:
                - id
                - name
                - riskLevel
              - type: 'null'
            createdAt:
              type: string
          required:
          - id
          - title
          - amount
          - status
          - verificationSource
          - verificationMethod
          - verificationStatus
          - verificationCheckedAt
          - verifiedAt
          - verificationDetail
          - verified
          - decidedAt
          - settledAt
          - closedAt
          - closeReason
          - agentReasoning
          - txHash
          - contractor
          - createdAt
          description: A contractor milestone, how it was verified, and whether it was paid.
      required:
      - data
    CreateMilestoneRequest:
      type: object
      properties:
        contractorId:
          type: string
          description: The `id` of the contractor or vendor to pay, from `GET /api/v1/counterparties` or from the answer that added it. A client is not paid for milestones.
        title:
          type: string
          description: What was delivered, 3 to 160 characters.
        amount:
          description: What the work is paid, in USDC, with at most 6 decimal places. A decimal string such as `"250.00"` keeps it exact; a number is read the same way.
          type:
          - string
          - number
        verificationSource:
          description: 'A link to the delivered work: https, up to 500 characters. A GitHub pull request (`https://github.com/<owner>/<repo>/pull/<number>`) is checked by the agent, which verifies the milestone once it is merged. Any other link is evidence for the person who verifies the milestone on Contractors.'
          type: string
      required:
      - contractorId
      - title
      - amount
      additionalProperties: false
      description: 'A milestone to add. It starts pending: the agent pays it only once it is verified, by GitHub or by a person, and only after its own checks.'
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
              - unauthorized
              - forbidden
              - not_found
              - invalid_request
              - conflict
              - rate_limited
              - unavailable
              - internal
              description: One of a closed set, so a client can branch on it without parsing the message.
            message:
              type: string
              description: A human-readable explanation. Never carries internal detail.
          required:
          - code
          - message
      required:
      - error
      description: Every error the API returns has this shape.
    ListMilestonesResponse:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              title:
                type: string
              amount:
                type: number
              status:
                type: string
                enum:
                - pending
                - verified
                - paid
                - held
                - closed
              verificationSource:
                type:
                - string
                - 'null'
              verificationMethod:
                type: string
                enum:
                - unverified
                - github
                - manual
                - seed
                - asana
                - linear
                - jira
              verificationStatus:
                type: string
                enum:
                - unverified
                - verified
                - not_merged
                - unavailable
                - failed
              verificationCheckedAt:
                type:
                - string
                - 'null'
              verifiedAt:
                type:
                - string
                - 'null'
              verificationDetail:
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
              verified:
                type: boolean
              decidedAt:
                type:
                - string
                - 'null'
              settledAt:
                type:
                - string
                - 'null'
              closedAt:
                description: When a person closed the milestone without paying it (status closed), else null.
                type:
                - string
                - 'null'
              closeReason:
                description: The reason the person gave for closing it without paying, else null.
                type:
                - string
                - 'null'
              agentReasoning:
                type:
                - string
                - 'null'
              txHash:
                description: An on-chain hash when the payment settled on Arc, else null.
                type:
                - string
                - 'null'
              contractor:
                anyOf:
                - type: object
                  properties:
                    id:
                      type: string
                    name:
                      type: string
                    riskLevel:
                      type: string
                  required:
                  - id
                  - name
                  - riskLevel
                - type: 'null'
              createdAt:
                type: string
            required:
            - id
            - title
            - amount
            - status
            - verificationSource
            - verificationMethod
            - verificationStatus
            - verificationCheckedAt
            - verifiedAt
            - verificationDetail
            - verified
            - decidedAt
            - settledAt
            - closedAt
            - closeReason
            - agentReasoning
            - txHash
            - contractor
            - createdAt
            description: A contractor milestone, how it was verified, and whether it was paid.
        page:
          type: object
          properties:
            nextCursor:
              description: Pass back as `?cursor=` to continue. Null when the end is reached.
              type:
              - string
              - 'null'
            hasMore:
              type: boolean
              description: Whether another page follows this one.
            count:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
              description: How many items this response carries.
          required:
          - nextCursor
          - hasMore
          - count
          description: Where this page sits in the collection.
      required:
      - data
      - page
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'A workspace API key: vxk_<prefix>_<secret>.'