API Key message
| Field | Type | Label | Description |
| id | string |
|
|
| name | string |
|
|
| key_prefix | string |
|
|
| created_at | google.protobuf.Timestamp |
|
|
| last_used | google.protobuf.Timestamp | optional |
|
AudioUpload message for uploading audio files (client -> server)
| Field | Type | Label | Description |
| data | bytes |
|
|
| mime_type | string |
|
| Field | Type | Label | Description |
| string |
|
||
| password | string |
|
| Field | Type | Label | Description |
| success | bool |
|
|
| user | User | optional |
|
| Field | Type | Label | Description |
| user_id | string |
|
|
| name | string |
|
| Field | Type | Label | Description |
| api_key | ApiKey |
|
|
| raw_key | string |
|
| Field | Type | Label | Description |
| user_id | string | Required for auth context |
|
| content | string |
|
|
| tags | string | repeated |
|
| images | ImageUpload | repeated |
|
| audios | AudioUpload | repeated |
|
| Field | Type | Label | Description |
| note | Note |
|
| Field | Type | Label | Description |
| user_id | string |
|
|
| key_id | string |
|
| Field | Type | Label | Description |
| success | bool |
|
| Field | Type | Label | Description |
| user_id | string | Required for auth context |
|
| id | string |
|
| Field | Type | Label | Description |
| success | bool |
|
| Field | Type | Label | Description |
| user_id | string | Required for auth context |
|
| id | string |
|
| Field | Type | Label | Description |
| note | Note |
|
| Field | Type | Label | Description |
| user_id | string | Required for auth context |
|
| count | int32 | Number of random notes to return (default: 5) |
| Field | Type | Label | Description |
| notes | Note | repeated |
|
| Field | Type | Label | Description |
| stripe_customer_id | string |
|
| Field | Type | Label | Description |
| user | User | optional |
|
| Field | Type | Label | Description |
| user_id | string |
|
| Field | Type | Label | Description |
| user | User |
|
| Field | Type | Label | Description |
| user_id | string |
|
| Field | Type | Label | Description |
| user | User |
|
ImageUpload message for uploading images (client -> server)
| Field | Type | Label | Description |
| data | bytes |
|
|
| mime_type | string |
|
| Field | Type | Label | Description |
| user_id | string |
|
| Field | Type | Label | Description |
| api_keys | ApiKey | repeated |
|
| Field | Type | Label | Description |
| user_id | string | Required for auth context |
|
| search | string |
|
|
| tags | string | repeated |
|
| start_date | string | ISO 8601 format |
|
| end_date | string | ISO 8601 format |
|
| limit | int32 |
|
|
| offset | int32 |
|
| Field | Type | Label | Description |
| notes | Note | repeated |
|
| total | int32 |
|
|
| limit | int32 |
|
|
| offset | int32 |
|
| Field | Type | Label | Description |
| user_id | string | Required for auth context |
| Field | Type | Label | Description |
| tags | Tag | repeated |
|
Note message
| Field | Type | Label | Description |
| id | string |
|
|
| content | string |
|
|
| tags | string | repeated |
|
| created_at | google.protobuf.Timestamp |
|
|
| updated_at | google.protobuf.Timestamp |
|
|
| images | NoteImage | repeated |
|
| audios | NoteAudio | repeated |
|
NoteAudio message for audio files attached to notes (server -> client)
| Field | Type | Label | Description |
| id | string |
|
|
| url | string |
|
|
| transcribed_text | string |
|
|
| mime_type | string |
|
|
| created_at | google.protobuf.Timestamp |
|
NoteImage message for images attached to notes (server -> client)
| Field | Type | Label | Description |
| id | string |
|
|
| url | string |
|
|
| extracted_text | string |
|
|
| mime_type | string |
|
|
| created_at | google.protobuf.Timestamp |
|
| Field | Type | Label | Description |
| string |
|
||
| password | string |
|
| Field | Type | Label | Description |
| user | User |
|
Tag message
| Field | Type | Label | Description |
| id | string |
|
|
| name | string |
|
|
| count | int32 |
|
|
| created_at | google.protobuf.Timestamp |
|
| Field | Type | Label | Description |
| user_id | string | Required for auth context |
|
| id | string |
|
|
| content | string | optional |
|
| tags | string | repeated |
|
| update_tags | bool | Flag to indicate if tags should be updated |
|
| add_images | ImageUpload | repeated |
|
| add_audios | AudioUpload | repeated |
|
| Field | Type | Label | Description |
| note | Note |
|
| Field | Type | Label | Description |
| user_id | string |
|
|
| notion_key | string | optional |
|
| name | string | optional |
|
| image | string | optional |
|
| password | string | optional |
|
| Field | Type | Label | Description |
| user | User |
|
| Field | Type | Label | Description |
| user_id | string |
|
|
| subscription_status | string |
|
|
| stripe_customer_id | string | optional |
|
| subscription_end | google.protobuf.Timestamp | optional |
|
| Field | Type | Label | Description |
| user | User |
|
User message
| Field | Type | Label | Description |
| id | string |
|
|
| string |
|
||
| name | string | optional |
|
| image | string | optional |
|
| subscription_status | string |
|
|
| subscription_end | google.protobuf.Timestamp | optional |
|
| created_at | google.protobuf.Timestamp |
|
|
| stripe_customer_id | string | optional |
|
| notion_key | string | optional |
|
| updated_at | google.protobuf.Timestamp |
|
| Field | Type | Label | Description |
| raw_key | string |
|
| Field | Type | Label | Description |
| valid | bool |
|
|
| user_id | string | optional |
|
| Method Name | Request Type | Response Type | Description |
| CreateApiKey | CreateApiKeyRequest | CreateApiKeyResponse | |
| ListApiKeys | ListApiKeysRequest | ListApiKeysResponse | |
| DeleteApiKey | DeleteApiKeyRequest | DeleteApiKeyResponse | |
| VerifyApiKey | VerifyApiKeyRequest | VerifyApiKeyResponse |
| Method Name | Request Type | Response Type | Description |
| Register | RegisterRequest | RegisterResponse | |
| Authenticate | AuthenticateRequest | AuthenticateResponse | |
| GetUser | GetUserRequest | GetUserResponse | |
| GetUserByStripeCustomerId | GetUserByStripeCustomerIdRequest | GetUserByStripeCustomerIdResponse | |
| UpdateUserSubscription | UpdateUserSubscriptionRequest | UpdateUserSubscriptionResponse |
| Method Name | Request Type | Response Type | Description |
| ListNotes | ListNotesRequest | ListNotesResponse | |
| CreateNote | CreateNoteRequest | CreateNoteResponse | |
| GetNote | GetNoteRequest | GetNoteResponse | |
| UpdateNote | UpdateNoteRequest | UpdateNoteResponse | |
| DeleteNote | DeleteNoteRequest | DeleteNoteResponse | |
| GetRandomNotes | GetRandomNotesRequest | GetRandomNotesResponse |
| Method Name | Request Type | Response Type | Description |
| ListTags | ListTagsRequest | ListTagsResponse |
| Method Name | Request Type | Response Type | Description |
| GetUserSettings | GetUserSettingsRequest | GetUserSettingsResponse | |
| UpdateUserSettings | UpdateUserSettingsRequest | UpdateUserSettingsResponse |
| .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby |
| double | double | double | float | float64 | double | float | Float | |
| float | float | float | float | float32 | float | float | Float | |
| int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) |
| uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) |
| sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) |
| fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum |
| sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| bool | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass | |
| string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) |
| bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) |