Skip to content

Commit 2ecf358

Browse files
authored
Merge pull request #213 from phasehq/feat--apis--envs-apps-access
feat: api docs for envs / apps / access
2 parents 2240514 + 368aa06 commit 2ecf358

23 files changed

Lines changed: 7124 additions & 113 deletions

public/llms.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,15 @@
1818
- [sdks/go](https://docs.phase.dev/sdks/go.md)
1919
- [sdks/node](https://docs.phase.dev/sdks/node.md)
2020
- [public-api](https://docs.phase.dev/public-api.md)
21+
- [public-api/apps](https://docs.phase.dev/public-api/apps.md)
22+
- [public-api/environments](https://docs.phase.dev/public-api/environments.md)
2123
- [public-api/secrets](https://docs.phase.dev/public-api/secrets.md)
2224
- [public-api/dynamic-secrets](https://docs.phase.dev/public-api/dynamic-secrets.md)
25+
- [public-api/members](https://docs.phase.dev/public-api/members.md)
26+
- [public-api/invites](https://docs.phase.dev/public-api/invites.md)
27+
- [public-api/service-accounts](https://docs.phase.dev/public-api/service-accounts.md)
28+
- [public-api/teams](https://docs.phase.dev/public-api/teams.md)
29+
- [public-api/roles](https://docs.phase.dev/public-api/roles.md)
2330
- [public-api/external-identities](https://docs.phase.dev/public-api/external-identities.md)
2431
- [public-api/errors](https://docs.phase.dev/public-api/errors.md)
2532
- [access-control](https://docs.phase.dev/access-control.md)

public/public-api.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ You can use the Phase public REST API to access and manage secrets via a simple
1919

2020
The Phase API is organized around [REST](https://en.wikipedia.org/wiki/Representational_State_Transfer). The API accepts data in the request body only in JSON-encoded format. It uses standard HTTP methods and response codes.
2121

22-
The API also returns specific error messages when something goes wrong. Check out the API [errors page](/public-api/errors) for more details.
22+
Supported HTTP methods are `GET`, `POST`, `PUT`, and `DELETE`. `PATCH` is not supported on any endpoint and returns `405 Method Not Allowed`.
23+
24+
Error responses are always JSON of the form `{"error": "<message>"}`. Check out the API [errors page](/public-api/errors) for more details.
2325

2426
## Base URL
2527

0 commit comments

Comments
 (0)