curl --request POST \
--url https://core.locusmedical.fr/v2/access-requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"full_name": "<string>",
"email": "<string>",
"role": "<string>",
"practice": "<string>",
"usage": "<string>",
"consent_version": "<string>",
"role_other": "<string>",
"referral": "<string>",
"referral_other": "<string>"
}
'import requests
url = "https://core.locusmedical.fr/v2/access-requests"
payload = {
"full_name": "<string>",
"email": "<string>",
"role": "<string>",
"practice": "<string>",
"usage": "<string>",
"consent_version": "<string>",
"role_other": "<string>",
"referral": "<string>",
"referral_other": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
full_name: '<string>',
email: '<string>',
role: '<string>',
practice: '<string>',
usage: '<string>',
consent_version: '<string>',
role_other: '<string>',
referral: '<string>',
referral_other: '<string>'
})
};
fetch('https://core.locusmedical.fr/v2/access-requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://core.locusmedical.fr/v2/access-requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'full_name' => '<string>',
'email' => '<string>',
'role' => '<string>',
'practice' => '<string>',
'usage' => '<string>',
'consent_version' => '<string>',
'role_other' => '<string>',
'referral' => '<string>',
'referral_other' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://core.locusmedical.fr/v2/access-requests"
payload := strings.NewReader("{\n \"full_name\": \"<string>\",\n \"email\": \"<string>\",\n \"role\": \"<string>\",\n \"practice\": \"<string>\",\n \"usage\": \"<string>\",\n \"consent_version\": \"<string>\",\n \"role_other\": \"<string>\",\n \"referral\": \"<string>\",\n \"referral_other\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://core.locusmedical.fr/v2/access-requests")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"full_name\": \"<string>\",\n \"email\": \"<string>\",\n \"role\": \"<string>\",\n \"practice\": \"<string>\",\n \"usage\": \"<string>\",\n \"consent_version\": \"<string>\",\n \"role_other\": \"<string>\",\n \"referral\": \"<string>\",\n \"referral_other\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.locusmedical.fr/v2/access-requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"full_name\": \"<string>\",\n \"email\": \"<string>\",\n \"role\": \"<string>\",\n \"practice\": \"<string>\",\n \"usage\": \"<string>\",\n \"consent_version\": \"<string>\",\n \"role_other\": \"<string>\",\n \"referral\": \"<string>\",\n \"referral_other\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"ok": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Archiver une demande d'accès à la bêta
Archive la demande et rend son identifiant. Écriture seule : aucune route ne relit cette table, qui porte une liste nominative de professionnels de santé avec leur lieu d’exercice.
Deux envois sont deux demandes : pas de déduplication à l’écriture. Quelqu’un qui renvoie son formulaire avec un lieu corrigé ne doit pas écraser le premier envoi — le doublon se voit à la lecture, où quelqu’un décide ; l’écrasement, lui, ne se voit jamais.
503 quand l’instance n’archive pas (table absente, drapeau éteint) : l’appelant DOIT pouvoir distinguer « archivé » de « pas archivé », c’est ce qui lui permet de décider s’il peut répondre « merci » à qui vient de remplir le formulaire.
curl --request POST \
--url https://core.locusmedical.fr/v2/access-requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"full_name": "<string>",
"email": "<string>",
"role": "<string>",
"practice": "<string>",
"usage": "<string>",
"consent_version": "<string>",
"role_other": "<string>",
"referral": "<string>",
"referral_other": "<string>"
}
'import requests
url = "https://core.locusmedical.fr/v2/access-requests"
payload = {
"full_name": "<string>",
"email": "<string>",
"role": "<string>",
"practice": "<string>",
"usage": "<string>",
"consent_version": "<string>",
"role_other": "<string>",
"referral": "<string>",
"referral_other": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
full_name: '<string>',
email: '<string>',
role: '<string>',
practice: '<string>',
usage: '<string>',
consent_version: '<string>',
role_other: '<string>',
referral: '<string>',
referral_other: '<string>'
})
};
fetch('https://core.locusmedical.fr/v2/access-requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://core.locusmedical.fr/v2/access-requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'full_name' => '<string>',
'email' => '<string>',
'role' => '<string>',
'practice' => '<string>',
'usage' => '<string>',
'consent_version' => '<string>',
'role_other' => '<string>',
'referral' => '<string>',
'referral_other' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://core.locusmedical.fr/v2/access-requests"
payload := strings.NewReader("{\n \"full_name\": \"<string>\",\n \"email\": \"<string>\",\n \"role\": \"<string>\",\n \"practice\": \"<string>\",\n \"usage\": \"<string>\",\n \"consent_version\": \"<string>\",\n \"role_other\": \"<string>\",\n \"referral\": \"<string>\",\n \"referral_other\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://core.locusmedical.fr/v2/access-requests")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"full_name\": \"<string>\",\n \"email\": \"<string>\",\n \"role\": \"<string>\",\n \"practice\": \"<string>\",\n \"usage\": \"<string>\",\n \"consent_version\": \"<string>\",\n \"role_other\": \"<string>\",\n \"referral\": \"<string>\",\n \"referral_other\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.locusmedical.fr/v2/access-requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"full_name\": \"<string>\",\n \"email\": \"<string>\",\n \"role\": \"<string>\",\n \"practice\": \"<string>\",\n \"usage\": \"<string>\",\n \"consent_version\": \"<string>\",\n \"role_other\": \"<string>\",\n \"referral\": \"<string>\",\n \"referral_other\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"ok": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Locus API key — paste the raw lsk_… value (no 'Bearer ' prefix).
Body
Ce que l'app relaie. Les bornes sont celles de @locus/core/access.
1 - 1203 - 2541 - 601 - 2001 - 20001 - 4016060300