Databases
Create database user
Add a new database user to the server.
Processing mode: <small><code>async</code></small>
post/orgs/{organization}/servers/{server}/database/users
Request
- Base URLhttps://forge.laravel.com/api
- AuthOAuth 2Authorization codehttps://forge.laravel.com/oauth/authorizeToken URLhttps://forge.laravel.com/oauth/tokenScopesserver:create-databases
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
organizationstring required
The organization slug
serverinteger required
The server ID
Request body
Example request
{
"name": "james",
"password": "password",
"read_only": true,
"database_ids": [
1,
2,
3
]
}Response
DatabaseUserResource
Example response
{
"data": {
"attributes": {
"name": "forge",
"status": "installed",
"created_at": "2025-07-29T09:00:00Z",
"updated_at": "2025-07-30T09:00:00Z"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.