Environments

Get an environment

GET
Returns a single environment

Path parameters

environmentIdstringRequired

ID of the environment to return. To fetch the current environment, pass current

Response

This endpoint returns an object
data
object

Errors

GET
$curl https://api.x.flatfile.com/v1/environments/us_env_YOUR_ID \
> -H "Authorization: Bearer <token>"
Response
1{
2 "data": {
3 "id": "us_env_YOUR_ID",
4 "accountId": "us_acc_YOUR_ID",
5 "name": "dev",
6 "isProd": false,
7 "guestAuthentication": [
8 "magic_link"
9 ],
10 "features": {},
11 "metadata": {},
12 "namespaces": [
13 "default"
14 ]
15 }
16}