Access Using API Key
From DreamFactory
Toddappleton (Talk | contribs) |
Toddappleton (Talk | contribs) |
||
Line 4: | Line 4: | ||
<pre>GET https://foo.com/api/v2/system/user?api_key=abc123efg</pre> | <pre>GET https://foo.com/api/v2/system/user?api_key=abc123efg</pre> | ||
− | * HTTP | + | * HTTP method: GET |
* URL: https://foo.com/api/v2 | * URL: https://foo.com/api/v2 | ||
* Service: system | * Service: system | ||
* Resource: user | * Resource: user | ||
− | * API | + | * API key: abc123efg |
Note: API key can also be supplied using the X-DreamFactory-Api-Key request header. | Note: API key can also be supplied using the X-DreamFactory-Api-Key request header. |
Revision as of 19:10, 30 June 2016
DreamFactory APIs can be consumed with just an API key. Each app has a unique API key that is passed as part of each request. If no session token is provided, the access is limited by the default role assigned to the application with that API key. For this example assume your app's API key is abc123efg.
Request:
GET https://foo.com/api/v2/system/user?api_key=abc123efg
- HTTP method: GET
- URL: https://foo.com/api/v2
- Service: system
- Resource: user
- API key: abc123efg
Note: API key can also be supplied using the X-DreamFactory-Api-Key request header.