Adam API

Create and start a task

Changed on

Starts asynchronous work. Supplying attachments additionally requires files:write; each uploadId must come from POST /v1/uploads.

post/v1/tasks

Request

  • Base URL
    https://api.adam.new
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://api.adam.new/auth/oauth2/authorize
      Token URLhttps://api.adam.new/auth/oauth2/token
      Scopestasks:write
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Headers

Idempotency-Keystring required

Required unique key. For 24 hours, retries with the same key and body replay the original response.

Request body

promptstring
titlestring
projectIdstring uuid

Response

Changes

    • info

      added the optional property ///// to the response with the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property / became nullable for the status

    • info

      added subschema #3 subschema #4 subschema #5 subschema #7 to the /// response property anyOf list for the response status

    • info

      removed subschema #3 subschema #4 subschema #5 subschema #7 from the /// response property anyOf list for the response status

    • info

      response property task/pendingInteraction/anyOf[subschema #1]/prompt list-of-types was narrowed by removing types null from media type application/json of response 201

    • info

      response property task/projectId list-of-types was narrowed by removing types null from media type application/json of response 201

    • info

      the // response's property pattern was changed from ^(?:(?:\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))$ to ^(?:(?:\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))$ for the status