Get a NAF activity
curl --request GET \
--url https://api.gabin.ai/v1/naf/{code} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gabin.ai/v1/naf/{code}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gabin.ai/v1/naf/{code}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"code": "<string>",
"label": "<string>",
"class": "<string>",
"group": "<string>",
"division": {
"code": "<string>",
"label": "<string>"
},
"section": {
"code": "<string>",
"label": "<string>"
},
"sector": "<string>"
},
"meta": {}
}
Reference data
Get a NAF activity
One NAF rev. 2 sub-class with its class, group, division, section and Gabin sector.
GET
/
v1
/
naf
/
{code}
Get a NAF activity
curl --request GET \
--url https://api.gabin.ai/v1/naf/{code} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gabin.ai/v1/naf/{code}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gabin.ai/v1/naf/{code}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"code": "<string>",
"label": "<string>",
"class": "<string>",
"group": "<string>",
"division": {
"code": "<string>",
"label": "<string>"
},
"section": {
"code": "<string>",
"label": "<string>"
},
"sector": "<string>"
},
"meta": {}
}
Authorizations
API key gab_live_… or OAuth access token gat_….
Path Parameters
NAF rev. 2 sub-class, with or without dot, any case. Example: "10.71C" or "1071c".
Maximum string length:
8⌘I