I draft an article for dev.to three times a week with a scheduled job. The job calls an integration CLI that wraps the platform's HTTP API, so nothing in my code builds a request: it sends a tool slug and a JSON payload, and the CLI assembles the call. The result is a draft I read, edit and approve.
Late in October I added one requirement to that pipeline. Every article has to carry the platform's AI disclosure field, because an agent writes the first version and I review it before publishing. some_ai is the value I use, and the page then shows an "AI-assisted" label next to the author.
The CLI's update tool accepts ten fields. The one I needed is not among them. Finding where the value actually lived took three different reads, and the fix was to stop using the wrapper for that single write.
Ten keys, and the one that is not there
The CLI validates arguments against a schema it keeps on disk before it sends anything. Passing the disclosure field the obvious way fails locally, before the request exists:
$ composio execute DEVTO_UPDATE_ARTICLE -d '{"id":5134859,"ai_disclosure_level":"some_ai"}' --dry-run ToolInputValidationError • Input validation failed for DEVTO_UPDATE_ARTICLE. Schema: /home/ubuntu/.composio/tool_definitions/DEVTO_UPDATE_ARTICLE.json - <root>: Unknown key "ai_disclosure_level". Allowed top-level keys: id, tags, title, series, published, main_image, description, body_markdown, canonical_url, organization_id The message does two useful things. It names the file that holds the schema, and it prints every accepted key, so I do not have to guess whether the field exists under another name. Ten keys cover title, body, tags, cover image, series, canonical URL, organization and the publish flag. Disclosure is the property I needed, and the wrapper cannot express it.
--dry-run is what makes this a cheap probe. Validation happens before the call, so I can test a payload against the schema without touching the article it names. On a tool that edits live content, that difference matters.
The schema describes the tool, not the endpoint. I had been reading it as the endpoint's surface, which is the mistake that cost the afternoon.
The value was in the response, in one of two reads
The same account already had an article whose disclosure I had set through a raw call earlier. Fetching that article by its numeric id returns the field twice:
$ composio proxy "https://dev.to/api/articles/5134859" --toolkit devto --account devto_koil-parley "ai_disclosure_level": "some_ai", "ai_disclosure_label": "AI-assisted", Then I asked the collection endpoint for my published articles:
$ composio proxy "https://dev.to/api/articles/me/published?per_page=3" --toolkit devto --account devto_koil-parley | grep -c "ai_disclosure" 0 $ composio proxy "https://dev.to/api/articles/5134859" --toolkit devto --account devto_koil-parley | grep -c "ai_disclosure" 2 The same article, the same field, zero occurrences in the list and two in the detail. The list is built from a lighter serializer, and there the field does not exist at all.
That asymmetry is worth more than the field itself. A health check written against the list would report every article as unmarked, including the ones that are labelled, and it would keep reporting that after a successful write. The failure is silent because the check returns a valid answer to a different question.
The published API document never mentions disclosure
I downloaded the OpenAPI specification that the platform's documentation site serves, 171,600 bytes, and searched it for the word:
$ curl -sL https://developers.forem.com/redocusaurus/plugin-redoc-1.yaml -o forem.yaml $ grep -ci "disclos" forem.yaml 0 The document does list the article endpoints. /api/articles/{id} offers get and put, and the response schema describes tags, cover image, canonical URL and the rest. Disclosure is absent from the schema, from the parameters and from the prose.
So the value is stored, returned by one endpoint, rendered on the public page and accepted by the write endpoint. Both layers I was reading before touching HTTP behaved as if it did not exist: the generated SDK schema and the published specification.
Silence in a specification means the document does not cover that field. It says nothing about whether the platform stores it.
Writing it through the raw route
The CLI has a proxy command that sends a request through the connected account and skips the tool schema. That is where the field became writable:
$ composio proxy "https://dev.to/api/articles/5134859" --toolkit devto \ --account devto_koil-parley -X PUT \ -H "content-type: application/json" \ -d '{"article":{"ai_disclosure_level":"some_ai"}}' The body needs the article wrapper. The tool builds that object for you, which is why its schema does not show it. Passing the fields at the top level instead returns 422 article param must be a JSON object, and the message is accurate: the endpoint wants one key whose value is the object of attributes.
Two consequences follow from having two write paths. The first is that the wrapper's ten keys still handle everything else, so the proxy call exists for one field and nothing more. The second is that a publish and a disclosure edit are separate requests if you publish first and patch the label afterwards. I put both in the same body now, which is one call and one thing to verify:
{"article":{"published":true,"ai_disclosure_level":"some_ai"}} A written value is a claim, the read is the proof
The PUT returns an article object, and that object is a response, not a receipt. The read that settles it is the same detail endpoint from before: ai_disclosure_level has to come back as some_ai and ai_disclosure_label as AI-assisted. If the response echoes the field as not_disclosed, the call passed and stored nothing.
There is a second read, on the page a person opens. The label is rendered in the article HTML:
$ curl -sL "https://dev.to/jonasfilhodev/<slug>" | grep -c "AI-assisted" 1 One occurrence in the served page tells me the badge is on the article, not only in a JSON field that my own script happens to read. The two reads answer different questions, and I want both answers before I call the work done.
This is the same rule I apply to the rest of the pipeline: when a write sets a field, the verification has to read that field from the resource that serves it. A successful call, a 200 and a response body that looks right are three weak signals compared with one read of the exact value at the exact address.
No delete, so drafts are reused
The specification lists get and put on /api/articles/{id}. There is no delete. An unpublish endpoint exists, and it requires an admin or moderator role on the instance, which an ordinary author does not have.
A draft created by mistake stays in the account. The way out is to update the same id with the real content, not to abandon it and create another. My job creates one draft per run and never a second one to fix the first, because the second would become an orphan in a list that I can only clean from the web interface.
None of this is unusual for a platform API. What surprised me is how well the gap hid. The wrapper rejected the field with a clear message, the list endpoint dropped it silently, and the published specification never named it. Three layers, and only the raw call told the truth about what the system actually stores.
Se você já perdeu tempo com um campo que a SDK ou a documentação não expõe, mas a API aceita, conta nos comentários como descobriu. Escrevo em português também e respondo na língua que você preferir.

