POST
/
v1
/
projects
curl --location --request POST 'https://api.lawg.dev/v1/projects' \
--header 'Content-Type: application/json' \
--data-raw '{
  "name": "My Project",
  "namespace": "my-project",
  "icon": "base64 encoded icon"
}'
{
  "success": true,
  "data": {
    "id": "project_xxx",
    "namespace": "my-project",
    "name": "My Project",
    "icon": "https://cdn.lawg.dev/projects/project_xxx.png",
    "tier": 0,
    "stripe_id": null,
    "feeds": [
      {
        "id": "feed_xxx",
        "name": "My Feed",
        "description": null,
        "emoji": null,
        "type": 0
      }
    ],
    "members": [
      {
        "id": "user_xxx",
        "username": "john",
        "icon": null
      }
    ]
  }
}
You must be authenticated to access this route

Body

name
string
required
The name of the project
namespace
string
required
The namespace of the project (this is unique)
icon
string
Base64 encoded icon for the project

Response

success
boolean
Indicates whether the call was successful. true if successful, false if not.
data
object
The contents of the data object
curl --location --request POST 'https://api.lawg.dev/v1/projects' \
--header 'Content-Type: application/json' \
--data-raw '{
  "name": "My Project",
  "namespace": "my-project",
  "icon": "base64 encoded icon"
}'
{
  "success": true,
  "data": {
    "id": "project_xxx",
    "namespace": "my-project",
    "name": "My Project",
    "icon": "https://cdn.lawg.dev/projects/project_xxx.png",
    "tier": 0,
    "stripe_id": null,
    "feeds": [
      {
        "id": "feed_xxx",
        "name": "My Feed",
        "description": null,
        "emoji": null,
        "type": 0
      }
    ],
    "members": [
      {
        "id": "user_xxx",
        "username": "john",
        "icon": null
      }
    ]
  }
}