Skip to content
Management API Reference

Accepts invitation for JIT database access

post/v1/projects/{ref}/database/jit/invite/accept

Accepts the invitation to JIT database access

Path parameters

  • ref
    Required
    string

    Project ref

Body

  • email
    Required
    string
  • token
    Required
    string

Response codes

  • 200
  • 500

Response (200)

{
"user_id": "00000000-0000-0000-0000-000000000000",
"user_roles": [
{
"role": "lorem",
"expires_at": 42,
"allowed_networks": {
"allowed_cidrs": [
{
"cidr": "144.144.144.144/14"
}
],
"allowed_cidrs_v6": [
{
"cidr": "::/104"
}
]
},
"branches_only": true
}
]
}