Identificar a chave de API atual
curl --request GET \
--url https://api.muveya.com/v1/me \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.muveya.com/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.muveya.com/v1/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"workspaceId": "<string>",
"environment": "test",
"scopes": [
"<string>"
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}Chave de API
Identificar a chave de API atual
Identifica a chave de API que faz a chamada: a clínica odontológica à qual está vinculada e os escopos que ela tem. A clínica odontológica vem apenas da chave; a resposta nunca inclui a chave, seu hash nem qualquer segredo. Qualquer chave válida pode chamá-la: nenhum escopo é necessário.
GET
/
v1
/
me
Identificar a chave de API atual
curl --request GET \
--url https://api.muveya.com/v1/me \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.muveya.com/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.muveya.com/v1/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"workspaceId": "<string>",
"environment": "test",
"scopes": [
"<string>"
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}Autorizações
Resposta
A identidade da chave de API autenticada.