{
  "openapi": "3.1.0",
  "info": {
    "title": "Agent Ops Jobs posting API",
    "version": "1.0.0",
    "description": "A post costs $149 USD. It includes a 30-day listing. Active roles are included in the job feeds we provide for aggregators such as Careerjet, Jooble and Adzuna (submissions pending). It also includes newsletter inclusion and an IndexNow submission. A featured add-on is $99 USD for 30 days. A post plus featured bundle is $199 USD. It saves $49 against buying the listing and the add-on separately. Posts are manually reviewed before publishing. Payment does not publish the role. Featured add-on: $99 USD for 30 days, on top of a $149 USD post or for a role already listed. Post + Featured bundle: $199 USD (a $149 USD post plus the featured upgrade). It saves $49 against buying the listing and the add-on separately. Request a featured placement by emailing agent-ops-jobs+post@mail.grokbot.com. We will reply with a payment link. The role is reviewed before it goes live. Set featured to true on a submission to request it. The $149 USD payment link in the response does not change. Payment does not publish the role."
  },
  "servers": [
    {
      "url": "https://agentopsboard.com"
    }
  ],
  "paths": {
    "/api/v1/job-posts": {
      "post": {
        "operationId": "createJobPost",
        "summary": "Submit a job post for payment and manual review",
        "description": "Does not publish the role and does not charge a card. The response includes a Stripe payment link. Jay reviews the submission before it goes live. No Turnstile token is required. contact_email is required. Full-time-only roles are rejected.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobPost"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Accepted. Status is pending_payment_and_review. The role is not published.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobPostAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Invalid role, including a full-time-only role.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large."
          },
          "415": {
            "description": "Content-Type must be application/json."
          },
          "429": {
            "description": "Too many submissions from this network."
          },
          "500": {
            "description": "Email is not configured. Nothing was published."
          },
          "502": {
            "description": "The submission email could not be sent. Nothing was published."
          }
        }
      }
    },
    "/api/v1/jobs": {
      "get": {
        "operationId": "listJobs",
        "summary": "List active roles",
        "description": "The same active listings as /listings.json. Closed roles are omitted. Featured roles (featured true) are listed first. Each job includes a featured boolean.",
        "responses": {
          "200": {
            "description": "Active listings.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobList"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "JobPost": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "title",
          "company",
          "company_url",
          "apply_url",
          "employment_type",
          "description",
          "contact_email"
        ],
        "properties": {
          "title": {
            "type": "string",
            "minLength": 4,
            "maxLength": 140
          },
          "company": {
            "type": "string",
            "minLength": 2,
            "maxLength": 80
          },
          "company_url": {
            "type": "string",
            "format": "uri",
            "description": "https URL"
          },
          "apply_url": {
            "type": "string",
            "format": "uri",
            "description": "https URL where a specialist applies"
          },
          "location": {
            "type": "string",
            "description": "Required when remote is not true."
          },
          "remote": {
            "type": "boolean"
          },
          "employment_type": {
            "type": "string",
            "enum": [
              "contract",
              "part-time",
              "fractional",
              "freelance"
            ]
          },
          "pay_min": {
            "type": "number",
            "minimum": 0
          },
          "pay_max": {
            "type": "number",
            "minimum": 0
          },
          "currency": {
            "type": "string",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "AUD",
              "PHP"
            ]
          },
          "period": {
            "type": "string",
            "enum": [
              "hour",
              "day",
              "month",
              "year"
            ]
          },
          "description": {
            "type": "string",
            "minLength": 40,
            "maxLength": 8000
          },
          "contact_email": {
            "type": "string",
            "format": "email"
          },
          "featured": {
            "type": "boolean",
            "description": "True requests the $99 USD featured add-on for 30 days. It does not publish the role. The response includes featured_addon when this is true. The $149 payment_url is unchanged."
          }
        }
      },
      "JobPostAccepted": {
        "type": "object",
        "required": [
          "ok",
          "submission_id",
          "status",
          "payment_url",
          "next_steps"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "const": true
          },
          "submission_id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "const": "pending_payment_and_review"
          },
          "payment_url": {
            "type": "string",
            "format": "uri"
          },
          "price_usd": {
            "type": "integer",
            "const": 149
          },
          "currency": {
            "type": "string",
            "const": "USD"
          },
          "next_steps": {
            "type": "string"
          },
          "featured_addon": {
            "$ref": "#/components/schemas/FeaturedAddon"
          }
        }
      },
      "FeaturedAddon": {
        "type": "object",
        "description": "Present when the submission set featured to true. Omitted otherwise. payment_url is null until a link is configured.",
        "required": [
          "price",
          "currency",
          "duration_days",
          "payment_url",
          "status"
        ],
        "properties": {
          "price": {
            "type": "integer",
            "const": 99
          },
          "currency": {
            "type": "string",
            "const": "USD"
          },
          "duration_days": {
            "type": "integer",
            "const": 30
          },
          "payment_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          }
        }
      },
      "JobList": {
        "type": "object",
        "properties": {
          "note": {
            "type": "string"
          },
          "jobs": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean",
            "const": false
          },
          "error": {
            "type": "string"
          }
        }
      }
    }
  }
}
