Pular para o conteúdo

Registrar a aceitação, pelo associado, de um documento jurídico na sua versão em vigor

POST
/v1/me/acceptances
curl --request POST \
--url https://api.vimine.network/v1/me/acceptances \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "kind": "example", "version": "example", "sha256": "example" }'

Grava um registro de prova (canal api, com o nome do seu app): um documento da camada da conta (aceitação de platform_terms, ciência de platform_privacy, consentimento a network_consent) ou a ciência do privacy_notice desta associação. version (e sha256, quando publicado) precisa indicar o texto em vigor que o seu app mostrou — senão, 422 <kind>_outdated. Registrar a mesma versão duas vezes não faz mal: cada registro é uma prova. Aceita Idempotency-Key.

Tipo de mídiaapplication/json
object
kind
obrigatório

Platform_terms | platform_privacy | network_consent | privacy_notice

string
version
obrigatório
Exatamente um de:
string
sha256
string
Exemplogerado
{
"kind": "example",
"version": "example",
"sha256": "example"
}

Registrado

Tipo de mídiaapplication/json
object
recorded
obrigatório
boolean
kind
obrigatório
string
action
obrigatório
string
version
obrigatório
string
at
obrigatório
string formato: date-time
Exemplogerado
{
"recorded": true,
"kind": "example",
"action": "example",
"version": "example",
"at": "2026-04-15T12:00:00Z"
}

Requisição inválida

Tipo de mídiaapplication/problem+json
object
type
obrigatório
string formato: uri
title
obrigatório
string
status
obrigatório
integer
detail
string
code
obrigatório
string
request_id
string
errors
Array<object>
object
field
string
code
string
message
string
Exemplogerado
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"field": "example",
"code": "example",
"message": "example"
}
]
}

Credenciais ausentes ou inválidas

Tipo de mídiaapplication/problem+json
object
type
obrigatório
string formato: uri
title
obrigatório
string
status
obrigatório
integer
detail
string
code
obrigatório
string
request_id
string
errors
Array<object>
object
field
string
code
string
message
string
Exemplogerado
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"field": "example",
"code": "example",
"message": "example"
}
]
}

Não permitido

Tipo de mídiaapplication/problem+json
object
type
obrigatório
string formato: uri
title
obrigatório
string
status
obrigatório
integer
detail
string
code
obrigatório
string
request_id
string
errors
Array<object>
object
field
string
code
string
message
string
Exemplogerado
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"field": "example",
"code": "example",
"message": "example"
}
]
}

Nada publicado para este tipo (not_found)

Tipo desconhecido, versão ausente ou uma versão que não está em vigor (<kind>_outdated)

Limite de requisições excedido

Tipo de mídiaapplication/problem+json
object
type
obrigatório
string formato: uri
title
obrigatório
string
status
obrigatório
integer
detail
string
code
obrigatório
string
request_id
string
errors
Array<object>
object
field
string
code
string
message
string
Exemplogerado
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"field": "example",
"code": "example",
"message": "example"
}
]
}

Erro interno

Tipo de mídiaapplication/problem+json
object
type
obrigatório
string formato: uri
title
obrigatório
string
status
obrigatório
integer
detail
string
code
obrigatório
string
request_id
string
errors
Array<object>
object
field
string
code
string
message
string
Exemplogerado
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"field": "example",
"code": "example",
"message": "example"
}
]
}