Skip to content

Profile and sessions ​

The person's own profile, photo, active connections, terms and the app satisfaction survey.

Submit the satisfaction survey answer ​

POST /feedback

Access: Any signed-in person. Rate limit: up to 10 calls every 60 s per origin. Success status: 201.

Request body (SusRespostaInput)

FieldTypeRequiredConstraintsDescription
respostaslist of integeryes10–10 itemsThe 10 items of the positive version, in order, on a 1–5 scale.
observacoesstringnoto 2000 characters

Response

SusEnviada

FieldTypeRequiredConstraintsDescription
idstring (uuid)yes
pontuacaonumberyes

On error: ErroApi model.

Example

bash
curl -X POST "$API/feedback" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"respostas":[1]}'

Satisfaction survey summary ​

GET /feedback/resumo

Access: Requires the capability PLATAFORMA. Success status: 200.

Response

SusResumo

FieldTypeRequiredConstraintsDescription
totalintegeryes
medianumber or nullyesAverage SUS score; null without answers.
porItemlist of numberyesAverage of each item (1–5), in order; empty without answers.

On error: ErroApi model.

Example

bash
curl -X GET "$API/feedback/resumo" -H "Authorization: Bearer $TOKEN"

Update your own profile ​

PATCH /me

Access: Any signed-in person. Success status: 200.

Request body (PerfilAtualizar)

FieldTypeRequiredConstraintsDescription
nomestringno1–200 characters
nationalitystring or nullno2–2 characters; ^[A-Za-z]{2}$
locale"pt-BR" | "es" | "en-US" or nullno
lattesUrl"" | stringnoLattes CV address (https).
conselhoCodigostring or nullnoto 60 charactersNumber at the professional council. Only the person themself sees it.
anoGraduacaointeger or nullno1930…2100
residenciabooleanno
especializacaobooleanno
mestradobooleanno
doutoradobooleanno
minibiostring or nullnoto 2000 characters

Response

Me

FieldTypeRequiredConstraintsDescription
idstring (uuid)yes
emailstringyes
nomestringyes
locale"pt-BR" | "es" | "en-US"yes
nationalitystring or nullyes
vinculoslist of VinculoDtoyes

On error: ErroApi model.

Example

bash
curl -X PATCH "$API/me" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{}'

Download your own profile photo ​

GET /me/foto

Access: Any signed-in person. Success status: 200.

Response

Image (bytes).

On error: ErroApi model.

Example

bash
curl -X GET "$API/me/foto" -H "Authorization: Bearer $TOKEN"

Upload your own profile photo ​

PUT /me/foto

Access: Any signed-in person. Rate limit: up to 20 calls every 60 s per origin. Success status: 200.

Request body (file): image/jpeg, image/png ou image/webp

Response

PerfilDto

FieldTypeRequiredConstraintsDescription
nomestringyes
emailstringyes
nationalitystring or nullyes
locale"pt-BR" | "es" | "en-US" or nullyes
lattesUrlstring or nullyes
conselhoCodigostring or nullyes
anoGraduacaointeger or nullyes
residenciabooleanyes
especializacaobooleanyes
mestradobooleanyes
doutoradobooleanyes
minibiostring or nullyes
temFotobooleanyesIs there a profile photo? The photo itself comes from GET /me/foto.
fotoEmstring or nullyesChanges with each photo change (use it to refresh the avatar cache).

On error: ErroApi model.

Example

bash
curl -X PUT "$API/me/foto" -H "Authorization: Bearer $TOKEN"

Remove your own profile photo ​

DELETE /me/foto

Access: Any signed-in person. Success status: 204.

Response

No response body.

On error: ErroApi model.

Example

bash
curl -X DELETE "$API/me/foto" -H "Authorization: Bearer $TOKEN"

Read your own full profile ​

GET /me/perfil

Access: Any signed-in person. Success status: 200.

Response

PerfilDto

FieldTypeRequiredConstraintsDescription
nomestringyes
emailstringyes
nationalitystring or nullyes
locale"pt-BR" | "es" | "en-US" or nullyes
lattesUrlstring or nullyes
conselhoCodigostring or nullyes
anoGraduacaointeger or nullyes
residenciabooleanyes
especializacaobooleanyes
mestradobooleanyes
doutoradobooleanyes
minibiostring or nullyes
temFotobooleanyesIs there a profile photo? The photo itself comes from GET /me/foto.
fotoEmstring or nullyesChanges with each photo change (use it to refresh the avatar cache).

On error: ErroApi model.

Example

bash
curl -X GET "$API/me/perfil" -H "Authorization: Bearer $TOKEN"

List the person's active connections ​

GET /me/sessoes

Access: Any signed-in person. Success status: 200.

Headers

ParameterTypeRequiredConstraintsDescription
x-refresh-tokenstringnoRefresh token of the current session (to mark which connection is the current one).

Response

SessoesAtivas

FieldTypeRequiredConstraintsDescription
itemslist of SessaoAtivaDtoyes

On error: ErroApi model.

Example

bash
curl -X GET "$API/me/sessoes" -H "Authorization: Bearer $TOKEN"

End one connection ​

DELETE /me/sessoes/{id}

Access: Any signed-in person. Success status: 204.

Path parameters

ParameterTypeRequiredConstraintsDescription
idstring (uuid)yesResource id.

Response

No response body.

On error: ErroApi model.

Example

bash
curl -X DELETE "$API/me/sessoes/{id}" -H "Authorization: Bearer $TOKEN"

End all other connections ​

POST /me/sessoes/encerrar-outras

Access: Any signed-in person. Rate limit: up to 10 calls every 60 s per origin. Success status: 200.

Headers

ParameterTypeRequiredConstraintsDescription
x-refresh-tokenstringnoRefresh token of the current session (to mark which connection is the current one).

Response

EncerrarOutrasResultado

FieldTypeRequiredConstraintsDescription
encerradasintegeryes0…

On error: ErroApi model.

Example

bash
curl -X POST "$API/me/sessoes/encerrar-outras" -H "Authorization: Bearer $TOKEN"

Current terms and policies of my institutions ​

GET /me/termos

Access: Any signed-in person. Success status: 200.

Response

TermosDosMeus

FieldTypeRequiredConstraintsDescription
itemslist of objectyes
items[].instituicaoobjectyes
items[].instituicao.idstring (uuid)yes
items[].instituicao.siglastringyes
items[].instituicao.nomestringyes
items[].termoTermoDtoyes
items[].politicaTermoDtoyes
items[].urlPublicastringyes
items[].privacidadePrivacidadeDtoyes

On error: ErroApi model.

Example

bash
curl -X GET "$API/me/termos" -H "Authorization: Bearer $TOKEN"

contato@presente.app.br