Skip to content
Hoursmith Docs
APIReferenceProjects

Grant a Member access to a project

Grant a Member access to a project. Manager, Admin or Owner. Access-granting and immediate. Only Member-role users (Owners/Admins/Managers → 422); active projects only. Idempotent (created: false when the grant exists). Plan: Studio or Agency (API access). Scope: write.

POST
/projects/{id}/members

Authorization

BearerAuth
AuthorizationBearer <token>

Personal Access Token. Mint at Settings → API. Token shape: hsk_<env>_<prefix12>_<secret32>.

In: header

Path Parameters

id*string

Project UUID.

Header Parameters

Idempotency-Key*string

Caller-generated UUID/ULID; replay returns the cached response within 24h.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/members" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{    "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b"  }'
{  "data": {    "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",    "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",    "created": true,    "addedAt": "2019-08-24T14:15:22Z",    "addedById": "02e6e45b-a7af-4272-9dc5-f1f7e42b66b5"  },  "warnings": [    "string"  ]}
{  "data": {    "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",    "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",    "created": true,    "addedAt": "2019-08-24T14:15:22Z",    "addedById": "02e6e45b-a7af-4272-9dc5-f1f7e42b66b5"  },  "warnings": [    "string"  ]}
{  "error": {    "code": "unauthenticated",    "message": "string",    "fields": {      "property1": "string",      "property2": "string"    },    "requiredPlan": "studio",    "feature": "string",    "requestId": "string"  }}
{  "error": {    "code": "unauthenticated",    "message": "string",    "fields": {      "property1": "string",      "property2": "string"    },    "requiredPlan": "studio",    "feature": "string",    "requestId": "string"  }}
{  "error": {    "code": "unauthenticated",    "message": "string",    "fields": {      "property1": "string",      "property2": "string"    },    "requiredPlan": "studio",    "feature": "string",    "requestId": "string"  }}
{  "error": {    "code": "unauthenticated",    "message": "string",    "fields": {      "property1": "string",      "property2": "string"    },    "requiredPlan": "studio",    "feature": "string",    "requestId": "string"  }}
{  "error": {    "code": "unauthenticated",    "message": "string",    "fields": {      "property1": "string",      "property2": "string"    },    "requiredPlan": "studio",    "feature": "string",    "requestId": "string"  }}
{  "error": {    "code": "unauthenticated",    "message": "string",    "fields": {      "property1": "string",      "property2": "string"    },    "requiredPlan": "studio",    "feature": "string",    "requestId": "string"  }}
{  "error": {    "code": "unauthenticated",    "message": "string",    "fields": {      "property1": "string",      "property2": "string"    },    "requiredPlan": "studio",    "feature": "string",    "requestId": "string"  }}
Was this page helpful?