Skip to content

Create an API key

POST
/v1/api_keys
curl --request POST \
--url https://api.railflo.com/v1/api_keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "Referral integration (prod)", "mode": "test", "scopes": [ "exchanges:read" ] }'
Media typeapplication/json
object
name
required
string
>= 1 characters <= 200 characters
Example
Referral integration (prod)
mode
required
string
Allowed values: test live
Example
test
scopes

Omit for all scopes.

Array<string>
Allowed values: exchanges:read exchanges:write patients:read patients:write webhooks:manage keys:manage audit:read team:manage org:manage usage:read documents:write sandbox:manage

Created

Media typeapplication/json
object
id
required
string
name
required
string
last4
required
string
mode
required
string
Allowed values: test live
scopes
required
Array<string>
Allowed values: exchanges:read exchanges:write patients:read patients:write webhooks:manage keys:manage audit:read team:manage org:manage usage:read documents:write sandbox:manage
created_at
required
string
last_used_at
required
string | null
revoked_at
required
string | null
secret
required

Shown exactly once — store it now, it cannot be retrieved again.

string
Example
{
"mode": "test",
"scopes": [
"exchanges:read"
]
}