Listar Usuários
Retorna a lista de usuários da conta. Pode filtrar por e-mail.
curl -X GET "https://api.amplifique.me/partners/users?search=example_string" \
-H "Content-Type: application/json" \
-H "Authorization: YOUR_API_KEY"
import requests
import json
url = "https://api.amplifique.me/partners/users?search=example_string"
headers = {
"Content-Type": "application/json",
"Authorization": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://api.amplifique.me/partners/users?search=example_string", {
method: "GET",
headers: {
"Content-Type": "application/json",
"Authorization": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.amplifique.me/partners/users?search=example_string", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.amplifique.me/partners/users?search=example_string')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'YOUR_API_KEY'
response = http.request(request)
puts response.body
[
{
"_id": "6287aba50f06ef0bdf789aa2",
"name": "Nome do Usuário",
"email": "email@dousuario.com",
"active": true,
"role": "own",
"_empresa": "6287abaef6ee66d309ab00b1",
"_businesses": [
"6287abb2ec1259b0a5d75f99"
]
}
]
{
"error": "Bad Request",
"message": "The request contains invalid parameters or malformed data",
"code": 400,
"details": [
{
"field": "email",
"message": "Invalid email format"
}
]
}
GET
/partners/users
GET
API Key (header: Authorization)
Authorizationstring
RequiredAPI key (sent in header)
query
searchstring
Filtra pelo campo e-mail
Request Preview
Response
Response will appear here after sending the request
Authentication
header
Authorizationstring
RequiredAPI Key for authentication. Provide your API key in the header.
Query Parameters
searchstring
Filtra pelo campo e-mail
Responses
_idstring
ID do usuário
namestring
Nome do usuário
emailstring
E-mail do usuário
activeboolean
Se o usuário está ativo
rolestring
Perfil de acesso: readonly, pdv, ana, adm, own
_empresastring
ID da empresa
_businessesstring[]
IDs das unidades que o usuário tem acesso
Requisição inválida
Was this page helpful?