Get your free beta license ↗
API operation · databases group
POST

/databases/phpmyadmin

First published 3 Oct 20260.1.0Unchanged since publication

Create a phpMyAdmin sign-on URL

Who may call it
AdministratorResellerCustomer
Token scope, any of
databasesall
Answers200 OK

Send the browser to url within one minute and use it once. The response includes expires_at, the URL's expiration time. Sign-on uses the caller's own hidden database user. A customer's database user can access all databases they own. An administrator's database user can access the entire MariaDB server.

UrbeStack creates the hidden database user on first sign-on and sets a new password on each sign-on. phpMyAdmin redeems the token for the database credentials and discards the temporary copy. UrbeStack retires the password after it has gone unused by phpMyAdmin sessions for the configured idle limit.

A nonempty return_url must start with http:// or https:// and contain 1 to 1990 characters after that prefix, within the 2000-character limit. Whitespace, quotes, angle brackets, and backslashes are disallowed. The API returns 400 for an invalid return_url.

As a command

Run as root on the server

Request body

JSON· 1 field
return_urlstring, up to 2000 characters
URL of the client's page where phpMyAdmin sends the browser after logout or sign-on expiration. By default, phpMyAdmin shows a signed-out page.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X POST "$API/databases/phpmyadmin" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "return_url": "text"
  }'
Response · 200 OK
{
  "expires_at": "2026-09-16T10:15:00Z",
  "url": "text"
}

Errors

2 errors, each a status and a sentence
400The return address is an http or https address, at most 2000 characters
401Authentication required
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/post-databases-phpmyadmin/