The profile that fits a markdown doc, from its headings (REQ-008).
POST
/profiles/guess
const url = 'https://example.com/api/v1/profiles/guess';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"text":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/profiles/guess \ --header 'Content-Type: application/json' \ --data '{ "text": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
text
required
string
Examplegenerated
{ "text": "example"}Responses
Section titled “ Responses ”The guess. profile is absent when no profile fits.
Media typeapplication/json
object
profile
string
Examplegenerated
{ "profile": "example"}default
Section titled “default”An error.
Media typeapplication/problem+json
RFC 9457 problem details with a stable code.
object
type
required
string
title
required
string
status
required
integer
detail
string
instance
string
code
required
A stable machine-readable error code.
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}