Api request. Send orders

Hello! Tell me please! Where can I find the documentation:
I need to send orders to Monday CRM.
The request will contain fields: name, phone number, etc.
We need an example of such a request and an example of a successful response.
I also want to make API requests to get statuses. We also need examples of request and response.

Hello @Seller!

Welcome to our community! I hope you like it here :muscle:

Regarding your requests, I made this examples for you.

If you want to create an item in a board containing fields like a name, phone number, etc., you could use a mutation like this one:

mutation {
 create_item(item_name: "This is a new Item", board_id: 12345678, group_id: "topics", column_values: "{\"phone\":  \"+11234567890\", \"numbers\": 100}") {
   id
 }
}

The response you will get will looks something like:

{
  "data": {
    "create_item": {
      "id": "98765432"
    }
  },
  "account_id": 111111111
}

If you want to populate a previously created item, you could use a query like this one:

mutation {
  change_multiple_column_values(item_id: 1234567, board_id: 4567890, column_values: "{\"status\":\"Stuck\", \"text\":\"This is text\"}") {
    name
  }
}

You will get a response that looks litke this:

{
  "data": {
    "change_multiple_column_values": {
      "name": "Item Name"
    }
  },
  "account_id": 11111111
}

For getting the statuses of your board’s items, you could use a query like this one:

{
  boards(ids:123456789){
    items{
      id
      name
      column_values(ids: "status"){
        text
      }
    }
  }
}

You could also specify the ID or IDs of the items.

The response you will get will look something like this:

{
  "data": {
    "boards": [
      {
        "items": [
          {
            "id": "12345678",
            "name": "Item 1",
            "column_values": [
              {
                "text": "Stuck"
              }
            ]
          },
          {
            "id": "12345678",
            "name": "Item 2",
            "column_values": [
              {
                "text": "Stuck"
              }
            ]
          }
        ]
      }
    ]
  },
  "account_id": 111111
}

I hope this helps!

Cheers,
-Matias